Gave file.py the ability to create directories (if they don't exist yet)
This commit is contained in:
parent
c6cc9f3d40
commit
a1347343e6
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue