fixed file paths
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
from transliterate.exceptions import LanguageDetectionError
|
||||
from transliterate import translit
|
||||
|
||||
from pathvalidate import sanitize_filename
|
||||
|
||||
|
||||
def unify(string: str) -> str:
|
||||
"""
|
||||
@@ -28,4 +30,6 @@ def fit_to_file_system(string: str) -> str:
|
||||
|
||||
string = string.replace("/", "|").replace("\\", "|")
|
||||
|
||||
string = sanitize_filename(string)
|
||||
|
||||
return string
|
||||
|
Reference in New Issue
Block a user