Added an illegalCharacters variable in the config.json file, as they can differ from filesystem to filesystem (or operating system). The default value is [\u0000\/\:*?"<>|]. Also changed fixName() in pathtemplates.py and its arguments.
Sorry if there is anything wrong. This is my first pull request.
Added an `illegalCharacters` variable in the config.json file, as they can differ from filesystem to filesystem (or operating system). The default value is `[\u0000\/\:*?"<>|]`. Also changed `fixName()` in pathtemplates.py and its arguments.
Sorry if there is anything wrong. This is my first pull request.
I thought about that but didn't find any module or anything. Maybe detecting the filesystem the folder is in with something like this https://stackoverflow.com/questions/25283882/determining-the-filesystem-type-from-a-path-in-python and selecting the correct group in a dictionary? I don't know how to implement that but can try.
Added an
illegalCharactersvariable in the config.json file, as they can differ from filesystem to filesystem (or operating system). The default value is[\u0000\/\:*?"<>|]. Also changedfixName()in pathtemplates.py and its arguments.Sorry if there is anything wrong. This is my first pull request.
Making the regex a user configurable setting is not the best of ideas, maybe it's better to change the regex based on the os.
I thought about that but didn't find any module or anything. Maybe detecting the filesystem the folder is in with something like this https://stackoverflow.com/questions/25283882/determining-the-filesystem-type-from-a-path-in-python and selecting the correct group in a dictionary? I don't know how to implement that but can try.
Nope, can't do this properly. Will use a script.