user/path value check: add support for no-unicode

This commit is contained in:
Peter Bieringer
2026-04-22 20:09:12 +02:00
parent 5a6bae0a2c
commit 2be334922a
4 changed files with 31 additions and 7 deletions

View File

@@ -34,6 +34,8 @@ class CollectionBase(storage.BaseCollection):
_filesystem_path: str
_filesystem_root_folder_is_collision_free: bool
_filesystem_root_folder_supports_unicode: bool
_filesystem_root_folder_supports_trailing_whitespace: bool
_filesystem_root_folder_supports_problematic_chars: bool
def __init__(self, storage_: "multifilesystem.Storage", path: str,
filesystem_path: Optional[str] = None) -> None:
@@ -46,6 +48,8 @@ class CollectionBase(storage.BaseCollection):
self._skip_broken_item = storage_.configuration.get("storage", "skip_broken_item")
self._filesystem_root_folder_is_collision_free = storage_._filesystem_root_folder_is_collision_free
self._filesystem_root_folder_supports_unicode = storage_._filesystem_root_folder_supports_unicode
self._filesystem_root_folder_supports_trailing_whitespace = storage_._filesystem_root_folder_supports_trailing_whitespace
self._filesystem_root_folder_supports_problematic_chars = storage_._filesystem_root_folder_supports_problematic_chars
if filesystem_path is None:
filesystem_path = pathutils.path_to_filesystem(folder, self.path, self._filesystem_root_folder_is_collision_free)
self._filesystem_path = filesystem_path