mirror of https://github.com/fmartingr/porg.git
Uncommented file move
This commit is contained in:
parent
faa0c1e589
commit
d76b906691
4
porg.py
4
porg.py
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue