From 394fc3c068539cffab2d9c990db5dc1474221156 Mon Sep 17 00:00:00 2001 From: Dummerle Date: Sun, 28 Feb 2021 12:34:35 +0100 Subject: [PATCH] Image_dir bug --- Rare/Components/Tabs/Settings/Rare.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rare/Components/Tabs/Settings/Rare.py b/Rare/Components/Tabs/Settings/Rare.py index 8fdd5d09..38bd57b9 100644 --- a/Rare/Components/Tabs/Settings/Rare.py +++ b/Rare/Components/Tabs/Settings/Rare.py @@ -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)