From b830dc03b3b7c9dd119648e1be9c1145d56e096c Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Tue, 15 Apr 2025 05:25:37 -0400 Subject: New upstream version 1.29.4. --- gallery_dl/path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gallery_dl/path.py') diff --git a/gallery_dl/path.py b/gallery_dl/path.py index 21e1aa0..54cf126 100644 --- a/gallery_dl/path.py +++ b/gallery_dl/path.py @@ -269,7 +269,7 @@ class PathFormat(): try: for fmt in self.directory_formatters: segment = fmt(kwdict).strip() - if strip and segment != "..": + if strip and segment not in {".", ".."}: # remove trailing dots and spaces (#647) segment = segment.rstrip(strip) if segment: -- cgit v1.2.3