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

Method TranslateName

tensorflow/core/platform/file_system.cc:32–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30FileSystem::~FileSystem() {}
31
32string FileSystem::TranslateName(const string& name) const {
33 // If the name is empty, CleanPath returns "." which is incorrect and
34 // we should return the empty path instead.
35 if (name.empty()) return name;
36 return io::CleanPath(name);
37}
38
39Status FileSystem::IsDirectory(const string& name) {
40 // Check if path exists.

Callers

nothing calls this directly

Calls 2

CleanPathFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected