fix: change user home folder path from ./home to ./drive and comment out lock registration in webdav

This commit is contained in:
2025-03-30 04:54:25 +00:00
parent ee895bbc7d
commit 03272f0bd0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ class UserService(BaseService):
return model
async def get_home_folder(self, user_uid):
folder = pathlib.Path(f"./home/{user_uid}")
folder = pathlib.Path(f"./drive/{user_uid}")
if not folder.exists():
folder.mkdir(parents=True, exist_ok=True)
return folder
+1 -1
View File
@@ -287,7 +287,7 @@ class WebdavApplication(aiohttp.web.Application):
)
resource = request.match_info.get("filename", "/")
lock_id = str(uuid.uuid4())
self.locks[resource] = lock_id
#self.locks[resource] = lock_id
xml_response = self.generate_lock_response(lock_id)
headers = {
"Lock-Token": f"opaquelocktoken:{lock_id}",