Create multiple directories

Paul Lemelle Plemelle at comcast.net
Sun Feb 24 20:16:19 EST 2008


I am somewhat new to Python and I am trying to create a program that
automatically creates directories from a range of numbers. I
researched the os.mkdir & os.makedirs methods, but they do not seem to
(I don't know) how to include an argumnet to step through my list. 

I woudl like to do the follwoing:
1) Ask the user how many folders to create
2) take raw_input and then translate it into a while loop that steps
through the os.mkdir process. 

Any would help would be appreicated. 

Paul




More information about the Python-list mailing list