bug fix with directory

This commit is contained in:
Steve Nyemba 2020-02-25 11:54:27 -06:00
parent 1db182a528
commit 994e71160e
1 changed files with 3 additions and 2 deletions

View File

@ -171,9 +171,10 @@ class GNet :
root = [] root = []
for loc in path.split(os.sep) : for loc in path.split(os.sep) :
root.append(loc) root.append(loc)
os.mkdir(os.sep.join(root)) if not os.path.exists(os.sep.join(root)) :
os.mkdir(os.sep.join(root))
else: elif not os.path.exists(path):
os.mkdir(path) os.mkdir(path)