Gave file.py the ability to create directories (if they don't exist yet)

This commit is contained in:
bjschuma 2009-12-27 23:47:14 -05:00
parent c6cc9f3d40
commit a1347343e6
1 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,12 @@ def checkPath(path):
return os.path.exists(path)
def mkdir(path):
if checkDir(path)==False:
write("Creating directory: "+path)
os.mkdir(path)
def expandPath(path):
return os.path.expanduser(path)