Creating folders/directories in Python

Below is the code which will allow you to create folders/directories in Python

import os

os.makedirs(’C:/Python25/testing/a/dddf/’,mode=666)

This will create a directory called dddf under a and it will have permissions 666

This entry was posted on Wednesday, July 23rd, 2008 at 4:38 pm and is filed under Python. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Post a Comment