MCPcopy Create free account
hub / github.com/catboost/catboost / Rename

Method Rename

util/system/fs.cpp:105–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105bool NFs::Rename(const TString& oldPath, const TString& newPath) {
106#if defined(_win_)
107 return NFsPrivate::WinRename(oldPath, newPath);
108#else
109 return ::rename(oldPath.data(), newPath.data()) == 0;
110#endif
111}
112
113void NFs::HardLinkOrCopy(const TString& existingPath, const TString& newPath) {
114 if (!NFs::HardLink(existingPath, newPath)) {

Callers

nothing calls this directly

Calls 3

WinRenameFunction · 0.85
renameFunction · 0.50
dataMethod · 0.45

Tested by

no test coverage detected