By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,885 Members | 1,499 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,885 IT Pros & Developers. It's quick & easy.

os.path.walk

P: n/a
If I have os.path.walk(name, processDirectory, None) and processDirectory
needs three arguments how can I ass them because walk only takes 3?
Jul 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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...

-Peter
Jul 18 '05 #2

P: n/a
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
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.