I am using rsync command-line tool to transfer files from a source folder to a destination folder as follows:
rsync -r /source_folder /destination_folder
How can this be done programmatically in c++? I have looked into librync, which is supposed to do this. But i think it is not very well documented and dosent have examples to show how to sync two folders. Also I am looking for a way to do this preferably without using system()/popen().
Is there any other way to do this in c++? Thanks in advance!