From ba51c1a8e47724a14c9f0707455a8c9bdcb73dde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 29 Jun 2024 02:41:56 +0200 Subject: [PATCH] [path] fix 1ca2cf51 --- gallery_dl/path.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gallery_dl/path.py b/gallery_dl/path.py index bfb6136f..4b4d405b 100644 --- a/gallery_dl/path.py +++ b/gallery_dl/path.py @@ -338,6 +338,10 @@ class PathFormat(): while True: try: os.replace(self.temppath, self.realpath) + except FileNotFoundError: + # delayed directory creation + os.makedirs(self.realdirectory) + continue except OSError: # move across different filesystems try: