Rewrite PathFilter

Added filter options:
- dot (replace leading dot with _)
- posix (replace illegal chars in *nix OSes with _)
- vfat (replace illegal chars in VFAT filesystems with _)
- whitespace (replace all whitespace chars with _)
- printable (replace all non printable ASCII chars with _)

Removed filter options:
- fat (replaced with vfat)
- special

Fixes #313.

Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
This commit is contained in:
JoeLametta
2018-11-03 13:00:00 +00:00
parent afc31f930e
commit 4dc02ec12e
4 changed files with 86 additions and 57 deletions

View File

@@ -241,8 +241,11 @@ options:
```INI
[main]
path_filter_fat = True ; replace FAT file system unsafe characters in filenames with _
path_filter_special = False ; replace special characters in filenames with _
path_filter_dot = True ; replace leading dot with _
path_filter_posix = True ; replace illegal chars in *nix OSes with _
path_filter_vfat = False ; replace illegal chars in VFAT filesystems with _
path_filter_whitespace = False ; replace all whitespace chars with _
path_filter_printable = False ; replace all non printable ASCII chars with _
[musicbrainz]
server = https://musicbrainz.org ; use MusicBrainz server at host[:port]