Fixed bug.

This commit is contained in:
retoor 2025-03-30 09:34:13 +02:00
parent 8058e4a4b0
commit 2a47c0ba5e

View File

@ -42,7 +42,10 @@ class UserService(BaseService):
async def get_home_folder(self, user_uid):
folder = pathlib.Path(f"./drive/{user_uid}")
if not folder.exists():
folder.mkdir(parents=True, exist_ok=True)
try:
folder.mkdir(parents=True, exist_ok=True)
except:
pass
return folder
async def register(self, email, username, password):