[pp:metadata] fix handling of empty directory paths (#7296)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user