mirror of
https://gitlab.sectorq.eu/jaydee/imported_video.git
synced 2025-12-14 10:34:53 +01:00
build
This commit is contained in:
@@ -86,7 +86,7 @@ for o, a in opts:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
_BACKUP = []
|
||||||
|
|
||||||
#print(_FULL_PATH)
|
#print(_FULL_PATH)
|
||||||
|
|
||||||
@@ -179,9 +179,14 @@ def flip_videos(_DEV,_SOURCE_DIR,_DAY_DIRS):
|
|||||||
print(output)
|
print(output)
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
try:
|
try:
|
||||||
print("Moving file to processed")
|
|
||||||
src = _FULL_PATH + filename + "_original"
|
src = _FULL_PATH + filename + "_original"
|
||||||
dest = _PROCESSED + "/" + filename
|
dest = _PROCESSED + "/" + filename
|
||||||
|
if os.path.exists(dest):
|
||||||
|
os.remove(filename)
|
||||||
|
else:
|
||||||
|
print("Moving file to processed")
|
||||||
|
|
||||||
|
|
||||||
print(f"Source : {src}")
|
print(f"Source : {src}")
|
||||||
print(f"Destination : {dest}")
|
print(f"Destination : {dest}")
|
||||||
shutil.move(src, dest)
|
shutil.move(src, dest)
|
||||||
@@ -192,6 +197,8 @@ def flip_videos(_DEV,_SOURCE_DIR,_DAY_DIRS):
|
|||||||
modified = create_date["modified"],
|
modified = create_date["modified"],
|
||||||
accessed = create_date["accessed"]
|
accessed = create_date["accessed"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
print(e)
|
print(e)
|
||||||
print(f"Failed to move {export_name}")
|
print(f"Failed to move {export_name}")
|
||||||
|
|||||||
Reference in New Issue
Block a user