implement a 'path-strip' option

This commit is contained in:
Mike Fährmann
2021-08-24 23:23:12 +02:00
parent 72c0cd30c7
commit d3eab417ed
3 changed files with 34 additions and 4 deletions

View File

@@ -245,6 +245,24 @@ Description
escaped with backslashes, e.g. ``"\\[\\]"``
extractor.*.path-strip
----------------------
Type
``string``
Default
``"auto"``
Description
Set of characters to remove from the end of generated path segment names
using `str.rstrip() <https://docs.python.org/3/library/stdtypes.html#str.rstrip>`_
Special values:
* ``"auto"``: Use characters from ``"unix"`` or ``"windows"``
depending on the local operating system
* ``"unix"``: ``""``
* ``"windows"``: ``". "``
extractor.*.extension-map
-------------------------
Type

View File

@@ -23,6 +23,7 @@
"path-restrict": "auto",
"path-replace": "_",
"path-remove": "\\u0000-\\u001f\\u007f",
"path-strip": "auto",
"extension-map": {
"jpeg": "jpg",
"jpe" : "jpg",