diff options
| author | 2022-01-08 20:39:28 -0500 | |
|---|---|---|
| committer | 2022-01-08 20:39:28 -0500 | |
| commit | 8de58070ee3e55f29966a787fd618632dbf4309b (patch) | |
| tree | c140f8a0f97445413a1681424cc93308592070c4 /gallery_dl/path.py | |
| parent | 7bc30b43b70556630b4a93c03fefc0d888e3d19f (diff) | |
New upstream version 1.20.1.upstream/1.20.1
Diffstat (limited to 'gallery_dl/path.py')
| -rw-r--r-- | gallery_dl/path.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gallery_dl/path.py b/gallery_dl/path.py index 9e9e983..15db67f 100644 --- a/gallery_dl/path.py +++ b/gallery_dl/path.py @@ -178,10 +178,11 @@ class PathFormat(): if WINDOWS: # Enable longer-than-260-character paths + directory = os.path.abspath(directory) if directory.startswith("\\\\"): directory = "\\\\?\\UNC\\" + directory[2:] else: - directory = "\\\\?\\" + os.path.abspath(directory) + directory = "\\\\?\\" + directory # abspath() in Python 3.7+ removes trailing path separators (#402) if directory[-1] != sep: |
