Tuesday, August 11, 2009

Creating a new directory in Python

>>> import os
>>> if os.path.exists(r'C:\tmpA') is False:
>>>     os.mkdir(r'C:\tmpA')

No comments: