::_1, std::placeholders::_2), loop);
}
void FileWatcher::watch_(ev::stat &w, int revents) {
if (...::_1, E_FILE, std::ref(path_infos_)),
std::bind(&FolderDiff::scan_, this, std::placeholders::...::_1, E_FILE, std::ref(path_infos)),
std::bind(&FolderDiff::scan_, this, std::placeholders::_...::_1, std::placeholders::_2));
}
对每个子文件的监视使用watch_file_回调,它在底层使用了之前定义的FileWatcher文件监视器类。...::_1, std::placeholders::_2));
}
}
由于对于文件的删除行为,文件监视器和文件夹监视器都会上报,所以需要对其进行去重。