diff options
| author | 2022-01-08 20:39:38 -0500 | |
|---|---|---|
| committer | 2022-01-08 20:39:38 -0500 | |
| commit | e79415947da81787fbcbdbf0447d6fa0ecea166a (patch) | |
| tree | c96811360f1816db1db38a64c6c65ddb7e03ece6 /gallery_dl/path.py | |
| parent | 4339ea5f5c0105d112c88fd07581115d7fb4f2a3 (diff) | |
| parent | 8de58070ee3e55f29966a787fd618632dbf4309b (diff) | |
Update upstream source from tag 'upstream/1.20.1'
Update to upstream version '1.20.1'
with Debian dir bfa6a049d7c503377f35ac76efd1ede7feb78f6a
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: |
