aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/path.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2022-10-17 03:44:10 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2022-10-17 03:44:10 -0400
commit6fa3c3d58670e90b140eeaa759773a3fe749321d (patch)
tree1060614e4c8708f59ac27e1ab9e20d6c3e42e806 /gallery_dl/path.py
parent71693e4757b29b478b4ef7c876c24aa7426a58e1 (diff)
parent78e2d1672e4301497f786cd03637de9ddbc717ac (diff)
Update upstream source from tag 'upstream/1.23.3'
Update to upstream version '1.23.3' with Debian dir 9ed24fbe8a8282e29b08d37ad95a98d733c8d145
Diffstat (limited to 'gallery_dl/path.py')
-rw-r--r--gallery_dl/path.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/gallery_dl/path.py b/gallery_dl/path.py
index 84ee7af..28c07c3 100644
--- a/gallery_dl/path.py
+++ b/gallery_dl/path.py
@@ -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("\\\\"):