From 8de58070ee3e55f29966a787fd618632dbf4309b Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sat, 8 Jan 2022 20:39:28 -0500 Subject: New upstream version 1.20.1. --- gallery_dl/path.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gallery_dl/path.py') 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: -- cgit v1.2.3