fixed file paths

This commit is contained in:
Hellow
2023-05-10 16:39:44 +02:00
parent 322010cb8a
commit f39c894fd7
3 changed files with 34 additions and 2 deletions

View File

@@ -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