Prevent race condition of the kind "read file -> remote change is pulled -> write file"?

A script may run unattended and edit my textual files. In the meantime, Syncthing may pull changes from remote.

If Syncthing pulls changes in between the moment my script reads the file and the moment it writes to file, I lose the changes from remote.

I’d like to pause Syncthing (partially or not) when the script is running. Is it possible?

Take a look at the docs: REST API

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.