| 233 | } |
| 234 | |
| 235 | bool ReadDir(const std::string & path, std::vector<std::string> & files) { |
| 236 | if (!fs_lib::exists(path)) |
| 237 | return false; |
| 238 | fs_lib::directory_iterator it(path); |
| 239 | fs_lib::directory_iterator end; |
| 240 | |
| 241 | for ( ; it != end; it++) { |
| 242 | if (!fs_lib::is_regular_file(it->status())) |
| 243 | continue; |
| 244 | files.push_back(it->path().string()); |
| 245 | } |
| 246 | |
| 247 | return true; |
| 248 | } |
| 249 | |
| 250 | bool Exists(const std::string & path) { |
| 251 | return fs_lib::exists(path); |
no test coverage detected