static
| 226 | |
| 227 | // static |
| 228 | void Platform::GetFilesByType(std::string const & directory, unsigned typeMask, TFilesWithType & outFiles) |
| 229 | { |
| 230 | FilesList allFiles; |
| 231 | GetAllFiles(directory, allFiles); |
| 232 | for (auto const & file : allFiles) |
| 233 | { |
| 234 | EFileType type; |
| 235 | if (GetFileType(base::JoinPath(directory, file), type) != ERR_OK) |
| 236 | continue; |
| 237 | if (typeMask & type) |
| 238 | outFiles.emplace_back(file, type); |
| 239 | } |
| 240 | } |
| 241 | |
| 242 | // static |
| 243 | bool Platform::IsDirectory(std::string const & path) |
no test coverage detected