> You have to walk the directory tree and sum each file's size. Windows
does this too
> - try your right-click properties on a large directory and see how long it
takes.
> That's also what du does. There are, however, some recipes that should
make this
> fairly simple for you - try this:
> http
is:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/86554
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tony Cappellini
Sent: Tuesday, April 22, 2008 2:03 PM
To: python-win32@python.org
Subject: [python-win32] Size of directory
When I r
Tony Cappellini wrote:
When I right click on a directory with windows Explorer, a window is
displayed showing
Size:
Size On Disk:
Contains:
Created:
Attributes:
(with the appropriate values for each entry)
How do I get the same information via Python ?
I've looked at os.stat but
os.stat(r
When I right click on a directory with windows Explorer, a window is
displayed showing
Size:
Size On Disk:
Contains:
Created:
Attributes:
(with the appropriate values for each entry)
How do I get the same information via Python ?
I've looked at os.stat but
os.stat(r'C:\temp')[os.path.stat.ST_S