Add output
This commit is contained in:
parent
7f7b5f561e
commit
ac35fdeb06
1 changed files with 3 additions and 0 deletions
|
@ -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.")
|
||||
|
||||
|
|
Loading…
Reference in a new issue