Creating an in-memory transfer manifest

We are quite successfully using rclone as a library embedded inside another go application, and I'm hoping for some guidance on how I might be able to implement a transfer manifest feature. Our application creates the relevant instances of fs, then calls the appropriate sync function such as sync.CopyDir. I'd really love to be able to extract a "transfer manifest" from the operation, basically a in-memory data structure listing every action that happened as part of the sync. I'm able to get something rather ad-hoc by capturing log output, but I'm hoping to hack something together that is more precise. My guess is that the stats system is probably the right place to inject something like this, and I'm looking for any tips that the rclone devs might provide towards how I might be able to do this in an elegant fashion. Thank you all for your work in maintaining such a useful tool!

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