From a2bfa40c5f035c36fc5039bd54978d9512541bc8 Mon Sep 17 00:00:00 2001 From: jaydee Date: Thu, 26 Sep 2024 22:53:34 +0200 Subject: [PATCH] bitwarden --- handle_imported_video.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/handle_imported_video.py b/handle_imported_video.py index bf7eb45..7995212 100644 --- a/handle_imported_video.py +++ b/handle_imported_video.py @@ -96,7 +96,7 @@ if _ACTION == "flip": # modified = "3:00 PM, 04 May 2009", # accessed = "08/07/2014 18:30:45" # ) - print(filedate.File(_FULL_PATH + _FILE).get()) + create_date = filedate.File(_FULL_PATH + _FILE).get() print(_FULL_PATH) @@ -116,6 +116,8 @@ if _ACTION == "flip": try: shutil.move(_FILE, "__" + export_name) shutil.move(export_name, _FILE) + + filedate.File(_FULL_PATH + _FILE).set(create_date) except: print(f"Failed to move {export_name}") if _ACTION == "join":