Add Base functionality

This commit is contained in:
Esa Kataja
2024-11-14 23:46:13 +02:00
parent c298763049
commit cf3b7bae5d
8 changed files with 383 additions and 1 deletions
View File
+5
View File
@@ -0,0 +1,5 @@
def sanitize_filename(filename: str) -> str:
characters_not_allowed = ["<", ">", ":", '"', "/", "\\", "|", "?", "*", " ", "'"]
for char in characters_not_allowed:
filename = filename.replace(char, "")
return filename