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

Method FilesExist

tensorflow/core/platform/file_system.cc:58–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56FileSystemRegistry::~FileSystemRegistry() {}
57
58bool FileSystem::FilesExist(const std::vector<string>& files,
59 std::vector<Status>* status) {
60 bool result = true;
61 for (const auto& file : files) {
62 Status s = FileExists(file);
63 result &= s.ok();
64 if (status != nullptr) {
65 status->push_back(s);
66 } else if (!result) {
67 // Return early since there is no need to check other files.
68 return false;
69 }
70 }
71 return result;
72}
73
74Status FileSystem::DeleteRecursively(const string& dirname,
75 int64* undeleted_files,

Callers

nothing calls this directly

Calls 3

FileExistsFunction · 0.50
okMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected