reading directory structure
Fredrik Lundh
fredrik at effbot.org
Fri Dec 8 10:50:49 EST 2000
Alexander Groten wrote:
> I'm new in Python.
> For a script I need a algorithm, that read a directory to a defined depth.
> Similar FIND.
>
> I have no plan (in the moment). Any suggestions?
os.path.walk
for some info on how to prevent os.path.walk from
traversing the whole disk, see:
http://www.deja.com/=dnc/getdoc.xp?AN=695333869
</F>
<!-- (the eff-bot guide to) the standard python library:
http://www.pythonware.com/people/fredrik/librarybook.htm
-->
More information about the Python-list
mailing list