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

Method IsDirectory

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

Source from the content-addressed store, hash-verified

1206}
1207
1208Status OSSFileSystem::IsDirectory(const std::string& fname) {
1209 FileStatistics stat;
1210 TF_RETURN_IF_ERROR(Stat(fname, &stat));
1211
1212 return stat.is_directory
1213 ? Status::OK()
1214 : errors::FailedPrecondition(fname + " is not a directory");
1215}
1216
1217Status OSSFileSystem::DeleteRecursively(const std::string& dirname,
1218 int64* undeleted_files,

Callers

nothing calls this directly

Calls 2

StatClass · 0.85
FailedPreconditionFunction · 0.85

Tested by

no test coverage detected