mirror of
https://github.com/samschott/maestral.git
synced 2024-09-21 19:08:44 +03:00
[path] ignore unicode differences in deletes
This commit is contained in:
parent
52676cec5e
commit
da04ef3851
@ -328,7 +328,9 @@ def delete(
|
||||
"""
|
||||
err: Optional[OSError] = None
|
||||
|
||||
if force_case_sensitive and path != to_existing_unnormalized_path(path):
|
||||
if force_case_sensitive and not equal_but_for_unicode_norm(
|
||||
path, to_existing_unnormalized_path(path)
|
||||
):
|
||||
err = FileNotFoundError(f"No such file '{path}'")
|
||||
if raise_error:
|
||||
raise err
|
||||
|
Loading…
Reference in New Issue
Block a user