os.path.walk
Steven Bethard
steven.bethard at gmail.com
Wed Apr 13 11:08:08 EDT 2005
Peter Hansen wrote:
> Micheal wrote:
>
>> If I have os.path.walk(name, processDirectory, None) and processDirectory
>> needs three arguments how can I ass them because walk only takes 3?
>
> The best answer to this is: if you aren't stuck
> using a version of Python prior to 2.4, don't
> use os.path.walk but use os.walk() instead...
I believe os.walk was introduced in 2.3 (according to the docs[1]), so
unless you're using a really old Python, you should be able to use it.
I also agree that os.walk is *much* simpler.
STeVe
[1] http://docs.python.org/lib/os-file-dir.html#l2h-1628
More information about the Python-list
mailing list