代码拉取完成,页面将自动刷新
#include <string>
#include "FolderSync.hpp"
using namespace std;
// Is used to build an easy-to-use command-line "general folder synchronization" tool.
// Run the following command from the command line:
// ./FolderSyncGeneralTool.exe "src_path" "dst_path1" "dst_path2" ...
int main(int argc, char *argv[]) {
if (argc < 3) {
cout << "Error: Please enter the path to the destination folder!" << endl;
return -1;
}
string src_path = argv[1];
vector<string> dst_paths;
for (int i = 2; i < argc; i++) {
dst_paths.emplace_back(argv[i]);
}
FolderSync folder_sync(src_path, dst_paths);
folder_sync.findDiff();
char flag;
cout << "If you need to update, enter [y/n]:" << endl;
cin >> flag;
if (flag == 'y') folder_sync.update();
return 0;
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。