From aef12e32de15a4063ab2224a534e6c7f794b6f05 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 2 May 2022 15:05:18 +0300 Subject: [PATCH] fix new path --- image_classifier/image_classifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image_classifier/image_classifier.py b/image_classifier/image_classifier.py index 60b9bfa..4f478c9 100755 --- a/image_classifier/image_classifier.py +++ b/image_classifier/image_classifier.py @@ -112,7 +112,7 @@ class image_classifier: folder_date = 'unknown-time' folder = os.path.join(dirname, folder_date, filename) self._log.debug(f"Time based folder name section '{folder_date}'") - new_path = os.path.join(dirname, os.path.dirname(folder)) + new_path = os.path.dirname(folder) if not os.path.exists(new_path): os.makedirs(new_path) if self.people_folder: