Fixed bug.
This commit is contained in:
parent
8058e4a4b0
commit
2a47c0ba5e
@ -42,7 +42,10 @@ class UserService(BaseService):
|
|||||||
async def get_home_folder(self, user_uid):
|
async def get_home_folder(self, user_uid):
|
||||||
folder = pathlib.Path(f"./drive/{user_uid}")
|
folder = pathlib.Path(f"./drive/{user_uid}")
|
||||||
if not folder.exists():
|
if not folder.exists():
|
||||||
folder.mkdir(parents=True, exist_ok=True)
|
try:
|
||||||
|
folder.mkdir(parents=True, exist_ok=True)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
return folder
|
return folder
|
||||||
|
|
||||||
async def register(self, email, username, password):
|
async def register(self, email, username, password):
|
||||||
|
Loading…
Reference in New Issue
Block a user