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

Method RenameTo

util/folder/path.cpp:336–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334}
335
336void TFsPath::RenameTo(const TString& newPath) const {
337 CheckDefined();
338 if (!newPath) {
339 ythrow TIoException() << "bad new file name";
340 }
341 if (!NFs::Rename(Path_, newPath)) {
342 ythrow TIoSystemError() << "failed to rename " << Path_ << " to " << newPath;
343 }
344}
345
346void TFsPath::RenameTo(const char* newPath) const {
347 RenameTo(TString(newPath));

Callers 2

PrepareToOpenLogFunction · 0.80
Y_UNIT_TESTFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected