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

Method FilesExist

serving/processor/storage/model_store_test.cc:94–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 bool FilesExist(const std::vector<string>& files,
95 std::vector<Status>* status) override {
96 for (auto it : files) {
97 bool found = false;
98 for (auto jt : file_names_) {
99 if (it == jt) {
100 status->emplace_back(Status::OK());
101 found = true;
102 break;
103 }
104 }
105 if (!found) {
106 status->emplace_back(Status(errors::Code::NOT_FOUND, ""));
107 }
108 }
109 return !status->empty();
110 }
111
112 Status GetChildren(const string& dir,
113 std::vector<string>* result) override {

Callers

nothing calls this directly

Calls 3

StatusClass · 0.50
emplace_backMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected