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

Leave a comment

Your comment