file system iteration

Georg Brandl g.brandl-nospam at gmx.net
Mon Oct 9 11:20:16 EDT 2006


rick wrote:
> Georg Brandl wrote:
> 
>> Which application needs to walk over ALL files? Normally, you just have a
>> starting path and walk over everything under it.
> 
> Searching for a file by name. Scanning for viruses. Etc. There are lots 
> of legitimate reason to walk all paths from a central starting point, no???

Yes. Still, the user may not want to scan all files, or exclude non-locally
mounted filesystem etc.

So you'll always have to give the user control over where to start, and
therefore there's no problem in letting him choose which drives he wants
to search on.

Georg



More information about the Python-list mailing list