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

Method FileExists

serving/processor/framework/filesystem/oss_file_system.cc:616–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614}
615
616Status OSSFileSystem::FileExists(const std::string& fname) {
617 FileStatistics stat;
618 if (Stat(fname, &stat).ok()) {
619 return Status::OK();
620 } else {
621 return errors::NotFound(fname, " does not exists");
622 }
623}
624
625// For GetChildren , we should not return prefix
626Status OSSFileSystem::_ListObjects(

Callers

nothing calls this directly

Calls 3

StatClass · 0.85
NotFoundFunction · 0.85
okMethod · 0.45

Tested by

no test coverage detected