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

Method IsDirectory

tensorflow/core/platform/file_system_test.cc:268–273  ·  view source on GitHub ↗

Only allow for a single root directory.

Source from the content-addressed store, hash-verified

266 public:
267 // Only allow for a single root directory.
268 Status IsDirectory(const string& dirname) override {
269 if (dirname == "." || dirname.empty()) {
270 return Status::OK();
271 }
272 return Status(tensorflow::error::FAILED_PRECONDITION, "Not a dir");
273 }
274
275 // Simulating a FS with a root dir and a single file underneath it.
276 Status GetChildren(const string& dir, std::vector<string>* result) override {

Callers

nothing calls this directly

Calls 2

StatusClass · 0.70
emptyMethod · 0.45

Tested by

no test coverage detected