| 74 | } |
| 75 | |
| 76 | bool read_list_file(const std::filesystem::path& filename, std::vector<std::string>& entries_out) { |
| 77 | std::ifstream input_file{ filename }; |
| 78 | if (!input_file.good()) { |
| 79 | return false; |
| 80 | } |
| 81 | |
| 82 | std::string entry; |
| 83 | |
| 84 | while (input_file >> entry) { |
| 85 | entries_out.emplace_back(std::move(entry)); |
| 86 | } |
| 87 | |
| 88 | return true; |
| 89 | } |
| 90 | |
| 91 | bool compare_files(const std::filesystem::path& file1_path, const std::filesystem::path& file2_path) { |
| 92 | static std::vector<char> file1_buf(65536); |