Exec command after file download/upload


Is it possible to run a script after a file of folder is done syncing?


You can use the rest API and listen for events.

As inspiration a program that does exactly that in Go (for every file in a folder): https://github.com/alex2108/syncthing-owncloud/tree/master/scanner

Written for owncloud but it just runs php with the needed commands which can be easily replaced by any other command.

1 Like