1
0
Fork 0
mirror of synced 2024-06-21 12:00:25 +12:00

Image_dir bug

This commit is contained in:
Dummerle 2021-02-28 12:34:35 +01:00
parent 6a55ebed2c
commit 394fc3c068

View file

@ -73,9 +73,9 @@ class RareSettings(QWidget):
new_path = self.select_path.text()
settings.setValue("img_dir", new_path)
print(old_path, new_path)
del settings
if old_path != new_path:
if not os.path.exists(new_path):
os.makedirs(new_path)
logger.info("Move Images")
shutil.move(old_path, new_path)
for i in old_path:
shutil.move(os.path.join(old_path, i), new_path)