Closed slowsage closed 2 months ago
Can also add a one line helper function _sanitize_filename
that is reused if thats cleaner. Not sure what you prefer.
If you want to use a sanitize method, I would suggest you do the following:
__strip_string
excludes slashes already but unfortunately also spaces which messes up the desktop file names. I have changed the code to reuse get_stripped_name
in installer.py
and updated get_install_directory_name
since its basically the same.
Thanks for the fix! It's really appreciated!
Description
Installing Shenzhen I/O throws the following error:
/
is not a valid character for a filename in linux. This PR removes all/
from the filename part of the path.Checklist