Add debug info
This commit is contained in:
parent
337c55f63f
commit
91ce27b068
1 changed files with 3 additions and 2 deletions
|
@ -114,10 +114,11 @@ class image_classifier:
|
|||
os.makedirs(new_path)
|
||||
if self.people_folder:
|
||||
for person in people:
|
||||
person_path = os.path.join(self.people_folder, person, folder)
|
||||
person_path = os.path.join(self.people_folder, person.replace(' ', '.'), folder)
|
||||
if not os.path.exists(person_path):
|
||||
os.makedirs(person_path)
|
||||
self._log.info(f"Copying file '{file}' to '{person_path}'...")
|
||||
self._log.info(f"Copying file '{file}' to person '{person}' folder,\
|
||||
'{person_path}'...")
|
||||
shutil.copy(file, person_path)
|
||||
if not self.no_move:
|
||||
self._log.info(f"Moving file '{file}' to '{new_path}'...")
|
||||
|
|
Loading…
Reference in a new issue