From d76b906691b20354e3978a44edfb3f905363b6d9 Mon Sep 17 00:00:00 2001 From: Felipe Martin Date: Sun, 30 Sep 2018 21:59:16 +0200 Subject: [PATCH] Uncommented file move --- porg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/porg.py b/porg.py index 38bf8c4..5722fdf 100644 --- a/porg.py +++ b/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))