mirror of
https://gitlab.sectorq.eu/jaydee/python.git
synced 2025-12-14 10:44:52 +01:00
bitwarden
This commit is contained in:
@@ -100,6 +100,10 @@ if _ACTION == "flip":
|
||||
c = create_date["created"]
|
||||
m = create_date["modified"]
|
||||
a = create_date["accessed"]
|
||||
new_date = {"created": c.strftime("%m/%d/%Y %H:%M:%S"),
|
||||
"modified": m.strftime("%m/%d/%Y %H:%M:%S"),
|
||||
"accessed":a.strftime("%m/%d/%Y %H:%M:%S")
|
||||
}
|
||||
new_date = {"created": c.strftime("%m/%d/%Y %H:%M:%S"),
|
||||
"modified": m.strftime("%m/%d/%Y %H:%M:%S"),
|
||||
"accessed":a.strftime("%m/%d/%Y %H:%M:%S")
|
||||
@@ -125,7 +129,7 @@ if _ACTION == "flip":
|
||||
shutil.move(_FILE, "__" + export_name)
|
||||
shutil.move(export_name, _FILE)
|
||||
|
||||
filedate.File(_FULL_PATH + _FILE).set(new_date)
|
||||
filedate.File(_FULL_PATH + _FILE).set(create_date)
|
||||
except ValueError as e:
|
||||
print(e)
|
||||
print(f"Failed to move {export_name}")
|
||||
|
||||
Reference in New Issue
Block a user