The problem I run into is that OneDrive upload blocks file write during upload, which is understandable.
The problem is that the file in question may have updates locally. In my setting, the update happens when 7z.exe finishes making a new .zip file and attempts to overwrite the source .zip file with the .tmp file 7zip just created. OneDrive upload then blocks this overwrite from happening. The result is I am stuck with a large number of potentially large .tmp# files.
Assuming there is even a way to know when OneDrive is reading, I need to somehow get 7z.exe to check that status after file compression is completed, but before .tmp file is transferred. Otherwise, I need 7z.exe or something else to block access to the source file for the duration of the whole operation, thus blocking OneDrive’s upload. I imagine OneDrive wouldn’t offer an option to block reading — though non-ideal, I am ok with storing updates outside the target .zip file for the duration of OneDrive upload.
But how does one do any of the above?
Is there a way to de-conflict 7zip (or any other file compression software) and OneDrive?