implement a 'path-strip' option
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
"path-restrict": "auto",
|
||||
"path-replace": "_",
|
||||
"path-remove": "\\u0000-\\u001f\\u007f",
|
||||
"path-strip": "auto",
|
||||
"extension-map": {
|
||||
"jpeg": "jpg",
|
||||
"jpe" : "jpg",
|
||||
|
||||
Reference in New Issue
Block a user