1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-01 18:18:31 +00:00

default for filesystem_cache_folder is filesystem_folder

This commit is contained in:
Peter Bieringer 2024-12-10 08:52:51 +01:00
parent b3d0c16407
commit 2bb2d6385b
4 changed files with 7 additions and 4 deletions

View file

@ -98,7 +98,10 @@ class StorageBase(storage.BaseStorage):
return os.path.join(self._filesystem_folder, "collection-root")
def _get_collection_cache_folder(self) -> str:
return os.path.join(self._filesystem_cache_folder, "collection-cache")
if self._filesystem_cache_folder:
return os.path.join(self._filesystem_cache_folder, "collection-cache")
else:
return os.path.join(self._filesystem_folder, "collection-cache")
def _get_collection_cache_subfolder(self, path, folder, subfolder) -> str:
if (self._use_cache_subfolder_for_item is True) and (subfolder == "item"):