Open FabianWildgrube opened 5 years ago
need to add also \\
return re.sub(r'[<>:\/\|\?\*\'"\\]', '_', name)[:FILE_NAME_MAX_LENGTH]
otherwise i get eg.:
Traceback (most recent call last):
File "c:\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\anaconda3\scripts\trello-full-backup.exe__main.py", line 7, in
Card names that contain the character
"
are not sanitised, which causes an error when callingmkdir
on windows. (Windows 10 in my case, running the script installed via pip)A simple fix would be to add
"
in the regex in line 46 in backup.py like so:return re.sub(r'[<>:\/\|\?\*\'"]', '_', name)[:FILE_NAME_MAX_LENGTH]
Test run on my system worked fine with this fix.
Cheers