Uncommented file move

This commit is contained in:
Felipe Martin 2018-09-30 21:59:16 +02:00
parent faa0c1e589
commit d76b906691
Signed by: fmartingr
GPG Key ID: 716BC147715E716F
1 changed files with 2 additions and 2 deletions

View File

@ -174,5 +174,5 @@ if __name__ == '__main__':
print(f'---- Error on {fileobj.path} ----')
raise exc
new_filename = '.'.join([fileobj.datetime.strftime('%Y-%m-%d_%H-%M-%S'), fileobj.extension])
# os.makedirs(target_path, exist_ok=True)
# shutil.move(fileobj.path, os.path.join(target_path, new_filename))
os.makedirs(target_path, exist_ok=True)
shutil.move(fileobj.path, os.path.join(target_path, new_filename))