Commit 2d74fc43 authored by comfyanonymous's avatar comfyanonymous
Browse files

Fix issue with user manager parent dir not being created.

parent 235727fe
...@@ -63,7 +63,6 @@ class UserManager(): ...@@ -63,7 +63,6 @@ class UserManager():
path = os.path.abspath(os.path.join(user_root, file)) path = os.path.abspath(os.path.join(user_root, file))
if os.path.commonpath((user_root, path)) != user_root: if os.path.commonpath((user_root, path)) != user_root:
return None return None
parent = os.path.join(path, os.pardir)
if create_dir and not os.path.exists(parent): if create_dir and not os.path.exists(parent):
os.mkdir(parent) os.mkdir(parent)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment