mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
syncurl: Sanitize element name on windows if it is used as folder name
Otherwise the name of the course might not be a invalid file name.
This commit is contained in:
parent
35c3fa205d
commit
83b75e8254
@ -113,7 +113,7 @@ def main() -> None:
|
||||
if not element_name:
|
||||
print("Error, could not get element name. Please specify a folder yourself.")
|
||||
return
|
||||
folder = Path(element_name)
|
||||
folder = sanitize_windows_path(Path(element_name.replace("/", "-").replace("\\", "-")))
|
||||
cookie_jar.save_cookies()
|
||||
else:
|
||||
folder = Path(args.folder)
|
||||
|
Loading…
Reference in New Issue
Block a user