I have a somewhat unusual requirement and would like to ask if Syncthing can meet it. I understand that Syncthing can monitor the file system for changes and initiate synchronization accordingly, or perform periodic scans to detect changes and trigger synchronization. However, both methods are somewhat slow for my needs. I’m looking to add an additional mechanism to actively trigger synchronization based on these existing methods. For instance, if I edit file F using software X on machine A and execute a script upon saving in X, I want to use this script to notify Syncthing and immediately synchronize file F to machine B.
Is there an API available to accomplish this?