From faa0c1e589ccbe13eb0fdf23151bea0e7e99aebf Mon Sep 17 00:00:00 2001 From: Felipe Martin Date: Sun, 30 Sep 2018 00:46:14 +0200 Subject: [PATCH] Test mode --- porg.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/porg.py b/porg.py index 7b923c1..38bf8c4 100644 --- a/porg.py +++ b/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))