summaryrefslogtreecommitdiffstats
path: root/gallery_dl/path.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/path.py')
-rw-r--r--gallery_dl/path.py2
1 files changed, 1 insertions, 1 deletions
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: