mirror of
https://gitlab.sectorq.eu/jaydee/python.git
synced 2025-12-14 18:44:53 +01:00
bitwarden
This commit is contained in:
@@ -97,8 +97,13 @@ if _ACTION == "flip":
|
|||||||
# accessed = "08/07/2014 18:30:45"
|
# accessed = "08/07/2014 18:30:45"
|
||||||
# )
|
# )
|
||||||
create_date = filedate.File(_FULL_PATH + _FILE).get()
|
create_date = filedate.File(_FULL_PATH + _FILE).get()
|
||||||
|
new_date = {"created": create_date["created"],
|
||||||
|
"modified": create_date["modified"],
|
||||||
|
"accessed":create_date["accessed"]
|
||||||
|
}
|
||||||
print(create_date)
|
print(create_date)
|
||||||
print(create_date["created"])
|
print(create_date["created"])
|
||||||
|
print(new_date)
|
||||||
print(_FULL_PATH)
|
print(_FULL_PATH)
|
||||||
print(myCmd)
|
print(myCmd)
|
||||||
os.chdir(_FULL_PATH)
|
os.chdir(_FULL_PATH)
|
||||||
@@ -117,7 +122,7 @@ if _ACTION == "flip":
|
|||||||
shutil.move(_FILE, "__" + export_name)
|
shutil.move(_FILE, "__" + export_name)
|
||||||
shutil.move(export_name, _FILE)
|
shutil.move(export_name, _FILE)
|
||||||
|
|
||||||
filedate.File(_FULL_PATH + _FILE).set(create_date)
|
filedate.File(_FULL_PATH + _FILE).set(new_date)
|
||||||
except:
|
except:
|
||||||
print(f"Failed to move {export_name}")
|
print(f"Failed to move {export_name}")
|
||||||
if _ACTION == "join":
|
if _ACTION == "join":
|
||||||
|
|||||||
Reference in New Issue
Block a user