From ac35fdeb06ab0057d62af4d11c9dac01660dfd36 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 6 Sep 2021 23:49:14 +0300 Subject: [PATCH] Add output --- image_classifier/image_classifier.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/image_classifier/image_classifier.py b/image_classifier/image_classifier.py index 79b44ed..ec42404 100755 --- a/image_classifier/image_classifier.py +++ b/image_classifier/image_classifier.py @@ -94,7 +94,10 @@ class image_classifier: self._log.debug(f"New path: {new_path}") os.makedirs(os.path.dirname(new_path), exist_ok=True) if new_path: + self._log.info(f"Moving file '{file}' to '{new_path}'...") shutil.move(file, new_path) + else: + self._log.debug('No new path, so no moving.') else: self._log.debug("Doesn't seem to be an image.")