| 266 | } |
| 267 | |
| 268 | static bool isDirectory(const std::string &path) |
| 269 | { |
| 270 | struct stat st; |
| 271 | if (!stat(path.c_str(), &st)) |
| 272 | return S_ISDIR(st.st_mode); |
| 273 | return false; |
| 274 | } |
| 275 | |
| 276 | static bool getFilesInDirectory(const std::string& path, std::vector<std::string> &res) |
| 277 | { |