mirror of https://github.com/fmartingr/porg.git
Test mode
This commit is contained in:
parent
3319f433f2
commit
faa0c1e589
6
porg.py
6
porg.py
|
@ -172,7 +172,7 @@ if __name__ == '__main__':
|
|||
target_path = get_target_path(fileobj)
|
||||
except Exception as exc:
|
||||
print(f'---- Error on {fileobj.path} ----')
|
||||
print(exc)
|
||||
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