Faster os.walk()
Laszlo Zsolt Nagy
gandalf at geochemsource.com
Wed Apr 20 11:47:49 EDT 2005
fuzzylollipop wrote:
>I am trying to get the number of bytes used by files in a directory.
>I am using a large directory ( lots of stuff checked out of multiple
>large cvs repositories ) and there is lots of wasted time doing
>multiple os.stat() on dirs and files from different methods.
>
>
Do you need a precise value, or are you satisfied with approximations too?
Under which operating system? The 'du' command can be your firend.
man du
Best,
Laci 2.0
--
_________________________________________________________________
Laszlo Nagy web: http://designasign.biz
IT Consultant mail: gandalf at geochemsource.com
Python forever!
More information about the Python-list
mailing list