This commit is contained in:
Mike Fährmann
2024-06-29 02:41:56 +02:00
parent 1ca2cf51a2
commit ba51c1a8e4

View File

@@ -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: