Add output

This commit is contained in:
Antonio J. Delgado 2021-09-06 23:49:14 +03:00
parent 7f7b5f561e
commit ac35fdeb06

View file

@ -94,7 +94,10 @@ class image_classifier:
self._log.debug(f"New path: {new_path}") self._log.debug(f"New path: {new_path}")
os.makedirs(os.path.dirname(new_path), exist_ok=True) os.makedirs(os.path.dirname(new_path), exist_ok=True)
if new_path: if new_path:
self._log.info(f"Moving file '{file}' to '{new_path}'...")
shutil.move(file, new_path) shutil.move(file, new_path)
else:
self._log.debug('No new path, so no moving.')
else: else:
self._log.debug("Doesn't seem to be an image.") self._log.debug("Doesn't seem to be an image.")