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

Method CreateDir

tensorflow/core/platform/env_test.cc:313–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311 }
312
313 Status CreateDir(const string& dir) override {
314 StringPiece scheme, host, path;
315 io::ParseURI(dir, &scheme, &host, &path);
316 if (scheme != "tmpdirfs") {
317 return errors::FailedPrecondition("scheme must be tmpdirfs");
318 }
319 if (host != "testhost") {
320 return errors::FailedPrecondition("host must be testhost");
321 }
322 return Env::Default()->CreateDir(io::JoinPath(BaseDir(), path));
323 }
324
325 void FlushCaches() override { flushed_ = true; }
326

Callers 2

SetUpMethod · 0.45
TEST_FFunction · 0.45

Calls 5

ParseURIFunction · 0.85
FailedPreconditionFunction · 0.85
DefaultFunction · 0.85
BaseDirFunction · 0.85
JoinPathFunction · 0.50

Tested by

no test coverage detected