From e55ccefeb309fa6e760eb0520b21df4fc4f8f7ee Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Thu, 26 Mar 2026 07:56:02 +0100 Subject: [PATCH] collection: add max_resource_size from config --- radicale/storage/multifilesystem/base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/radicale/storage/multifilesystem/base.py b/radicale/storage/multifilesystem/base.py index f0fe3dd5..c5e29b80 100644 --- a/radicale/storage/multifilesystem/base.py +++ b/radicale/storage/multifilesystem/base.py @@ -78,6 +78,7 @@ class StorageBase(storage.BaseStorage): _debug_cache_actions: bool _folder_umask: str _config_umask: int + _max_resource_size: int def __init__(self, configuration: config.Configuration) -> None: super().__init__(configuration) @@ -99,6 +100,8 @@ class StorageBase(storage.BaseStorage): "storage", "folder_umask") self._debug_cache_actions = configuration.get( "logging", "storage_cache_actions_on_debug") + self._max_resource_size = configuration.get( + "server", "max_resource_size") def _get_collection_root_folder(self) -> str: return os.path.join(self._filesystem_folder, "collection-root")