change to path
This commit is contained in:
parent
73e7d2183a
commit
52ec8a8f8c
1 changed files with 3 additions and 3 deletions
|
@ -109,9 +109,9 @@ class image_classifier:
|
|||
{match.group('day')}"
|
||||
else:
|
||||
folder = 'unknown-time'
|
||||
new_path = os.path.join(dirname, folder, filename)
|
||||
if not os.path.exists(os.path.dirname(new_path)):
|
||||
os.makedirs(os.path.dirname(new_path))
|
||||
new_path = os.path.join(dirname, folder)
|
||||
if not os.path.exists(new_path):
|
||||
os.makedirs(new_path)
|
||||
if self.people_folder:
|
||||
for person in people:
|
||||
person_path = os.path.join(self.people_folder, person, folder)
|
||||
|
|
Loading…
Reference in a new issue