472,093 Members | 2,510 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,093 software developers and data experts.

retrieeving directory folders and sub folders

I Need Code For Retrieving Folders And Sub Folders Usng Python. May Be According To A Specific Condition May Be Say Folder With Names Www Etc..
Please Help
Aug 3 '07 #1
3 1667
ghostdog74
511 Expert 256MB
I Need Code For Retrieving Folders And Sub Folders Usng Python. May Be According To A Specific Condition May Be Say Folder With Names Www Etc..
Please Help
Use the os.walk() method. See here
Aug 3 '07 #2
It is helpful to wrap os.walk to create a custom generator. My version of this was published in the Python Cookbook, a must-have text for anyone working in the language. A simpler version is on my programming blog if you want a quick demonstration.
Aug 9 '07 #3
bartonc
6,596 Expert 4TB
It is helpful to wrap os.walk to create a custom generator. My version of this was published in the Python Cookbook, a must-have text for anyone working in the language. A simpler version is on my programming blog if you want a quick demonstration.
Thanks, Robin. I checked out you site: It's quite nice and the link doesn't seem to violate any Posting Guidelines. I hope you stick around and grab a few questions along the way.

Thanks for joining,
Barton
Aug 10 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Jeff Reed | last post: by
reply views Thread by Support | last post: by
2 posts views Thread by Manny Chohan | last post: by
6 posts views Thread by Martin Bischoff | last post: by
7 posts views Thread by Brian Cahill | last post: by
3 posts views Thread by Kimera.Kimera | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.