Newbie Needs help!!

Michael Geary Mike at DeleteThis.Geary.com
Fri Oct 10 16:55:43 EDT 2003


Rigga wrote:
> Im struggling to get to grips with Python at the moment, what
> I am trying to do is write a routine that will basically list the
> current directory (which contains sub folders) and store all
> folder names in an array or text file and then split the each
> folder name out as fileds (and assign them to variables) and
> then run an external program (from within python)  and pass
> it fields as input to it..

Be sure to check out the os.walk() function. Scroll to the end of this page:

http://www.python.org/doc/current/lib/os-file-dir.html

-Mike






More information about the Python-list mailing list