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

Method RenameFile

tensorflow/core/platform/posix/posix_file_system.cc:320–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320Status PosixFileSystem::RenameFile(const string& src, const string& target) {
321 Status result;
322 if (rename(TranslateName(src).c_str(), TranslateName(target).c_str()) != 0) {
323 result = IOError(src, errno);
324 }
325 return result;
326}
327
328Status PosixFileSystem::CopyFile(const string& src, const string& target) {
329 string translated_src = TranslateName(src);

Callers

nothing calls this directly

Calls 3

renameFunction · 0.85
IOErrorFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected