This commit is contained in:
2025-06-19 19:26:26 +02:00
parent e99aebce60
commit 9662b95941

View File

@@ -86,7 +86,7 @@ for o, a in opts:
_BACKUP = []
#print(_FULL_PATH)
@@ -179,9 +179,14 @@ def flip_videos(_DEV,_SOURCE_DIR,_DAY_DIRS):
print(output)
time.sleep(2)
try:
print("Moving file to processed")
src = _FULL_PATH + filename + "_original"
dest = _PROCESSED + "/" + filename
if os.path.exists(dest):
os.remove(filename)
else:
print("Moving file to processed")
print(f"Source : {src}")
print(f"Destination : {dest}")
shutil.move(src, dest)
@@ -192,6 +197,8 @@ def flip_videos(_DEV,_SOURCE_DIR,_DAY_DIRS):
modified = create_date["modified"],
accessed = create_date["accessed"]
)
except ValueError as e:
print(e)
print(f"Failed to move {export_name}")