mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 07:25:04 +02: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue