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

Method ForceRenameTo

util/folder/path.cpp:497–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495}
496
497void TFsPath::ForceRenameTo(const TString& newPath) const {
498 try {
499 RenameTo(newPath);
500 } catch (const TIoSystemError& /* error */) {
501 CopyTo(newPath, true);
502 ForceDelete();
503 }
504}
505
506TFsPath TFsPath::Cwd() {
507 return TFsPath(::NFs::CurrentWorkingDirectory());

Callers 3

SaveProgressMethod · 0.80
MaybeSaveSnapshotMethod · 0.80
Y_UNIT_TESTFunction · 0.80

Calls 1

CopyToFunction · 0.50

Tested by

no test coverage detected