user/path value check: add support for no-unicode
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user