add 'path-extended' option (#3021)

This commit is contained in:
Mike Fährmann
2022-10-07 18:23:06 +02:00
parent bc9d291c13
commit 7f30a0d7a7
3 changed files with 17 additions and 1 deletions

View File

@@ -105,6 +105,9 @@ class PathFormat():
strip = ". "
self.strip = strip
if WINDOWS:
self.extended = config("path-extended", True)
basedir = extractor._parentdir
if not basedir:
basedir = config("base-directory")
@@ -178,7 +181,7 @@ class PathFormat():
else:
self.directory = directory = self.basedirectory
if WINDOWS:
if WINDOWS and self.extended:
# Enable longer-than-260-character paths
directory = os.path.abspath(directory)
if directory.startswith("\\\\"):