MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / DirectoryExists

Method DirectoryExists

tensorflow/contrib/android/asset_manager_filesystem.cc:237–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237bool 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
246Status AssetManagerFileSystem::GetMatchingPaths(const string& pattern,
247 std::vector<string>* results) {

Callers

nothing calls this directly

Calls 3

ScopedAssetDirClass · 0.85
c_strMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected