Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用rsync命令行工具将文件从源文件夹传输到目标文件夹,如下所示:
rsync -r /source_folder /destination_folder
如何在 C++ 中以编程方式完成?我研究了librync,它应该这样做。但我认为它没有很好的文档记录,并且有示例来展示如何同步两个文件夹。我也在寻找一种最好不使用 system()/popen() 的方法来做到这一点。
在 C++ 中有没有其他方法可以做到这一点?提前致谢!