Is it possible to know somehow if files/dirs changed at destionation after sync?
i.e. not every sync ends with changes (rclone may see that nothing changed at cloud drive and not update anything locally), but if there was something changed after sync at local folder - how to know about it?
I’m using rclone (thanks! it’s very cool!) in a Linux shell “while true” loop.
So ofc I can run a script each time after rclone run
But I think it’s a good option to run callback script from rclone option, for example, rclone -sync -onchanges script.sh
And I have one more question: files appears immediately with their names (but not full contents) during sync, so my another program (remote, can’t be notified) thinks that file already there (but file is only partially downloaded).
Can I set some option for rclone to download file to a temporary location (or with temporary name) and then just immediately move/rename it to appear full contents immediately?
I’ve been thinking of making a kind of event log output for rclone which you could send to a file or a pipe. This would have event records in which would essentially be the rclone log in machine readable format, plus other stuff. That would be great for people implementing GUIs, but it would probably be hard work for scripting.
The --on-changes or maybe --on-event idea is interesting. I’d imagine you’d call the script with multiple parameters, the first of which indicates what rclone was doing, the second the status and the third what it was doing it to, eg