Skip to content

Commit 91eecf2

Browse files
Now I first delete (not launch it as a thread) and then start the program. It makes the startup performance worse but this way it is guaranteed that a deleted file will not be sent or is being deleted
1 parent 9ccd7a4 commit 91eecf2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

camera.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ def fileManagSend(f,server,user,origin,destination,regDelName):
7575
createDirRec(FOLDER_NAME)
7676
ts = timestamp()
7777
piPath = PI_PATH + FOLDER_NAME + '/'
78-
executor.submit(removeFile,piPath,REGISTER_NAME_TO_DELATE)
78+
#executor.submit(removeFile,piPath,REGISTER_NAME_TO_DELATE)
79+
removeFile(piPath,REGISTER_NAME_TO_DELATE)
7980
files = Files(piPath)
8081
if len(files) > 0 :
8182
executor.submit(filesManagSend,files,SERVER,USER,piPath,SERVER_PATH,REGISTER_NAME_TO_DELATE)

0 commit comments

Comments
 (0)