From b744e9658c540413c6825569aa89afb21c84d9fe Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Fri, 28 Mar 2025 07:35:43 +0100 Subject: [PATCH] use collection-root location for lock instead of base directory --- radicale/storage/multifilesystem/lock.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radicale/storage/multifilesystem/lock.py b/radicale/storage/multifilesystem/lock.py index 6e5489ef..7298ea1e 100644 --- a/radicale/storage/multifilesystem/lock.py +++ b/radicale/storage/multifilesystem/lock.py @@ -55,7 +55,8 @@ class StoragePartLock(StorageBase): def __init__(self, configuration: config.Configuration) -> None: super().__init__(configuration) - lock_path = os.path.join(self._filesystem_folder, ".Radicale.lock") + lock_path = os.path.join(self._get_collection_root_folder(), ".Radicale.lock") + logger.debug("Lock file (StoragePartLock): %r" % lock_path) self._lock = pathutils.RwLock(lock_path) self._hook = configuration.get("storage", "hook")