| 235 | } |
| 236 | |
| 237 | bool AssetManagerFileSystem::DirectoryExists(const std::string& fname) { |
| 238 | std::string path = NormalizeDirectoryPath(fname); |
| 239 | auto dir = |
| 240 | ScopedAssetDir(AAssetManager_openDir(asset_manager_, path.c_str())); |
| 241 | // Note that openDir will return something even if the directory doesn't |
| 242 | // exist. Therefore, we need to ensure one file exists in the folder. |
| 243 | return AAssetDir_getNextFileName(dir.get()) != NULL; |
| 244 | } |
| 245 | |
| 246 | Status AssetManagerFileSystem::GetMatchingPaths(const string& pattern, |
| 247 | std::vector<string>* results) { |
nothing calls this directly
no test coverage detected