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

Function JoinGcsPath

tensorflow/core/platform/cloud/gcs_file_system.cc:194–196  ·  view source on GitHub ↗

io::JoinPath() doesn't work in cases when we want an empty subpath to result in an appended slash in order for directory markers to be processed correctly: "gs://a/b" + "" should give "gs://a/b/".

Source from the content-addressed store, hash-verified

192// to result in an appended slash in order for directory markers
193// to be processed correctly: "gs://a/b" + "" should give "gs://a/b/".
194string JoinGcsPath(const string& path, const string& subpath) {
195 return strings::StrCat(MaybeAppendSlash(path), subpath);
196}
197
198/// \brief Returns the given paths appending all their subfolders.
199///

Callers 2

RenameFileMethod · 0.85
DeleteRecursivelyMethod · 0.85

Calls 2

MaybeAppendSlashFunction · 0.85
StrCatFunction · 0.50

Tested by

no test coverage detected