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

Method Touch

util/folder/path.cpp:354–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354void TFsPath::Touch() const {
355 CheckDefined();
356 if (!TFile(*this, OpenAlways).IsOpen()) {
357 ythrow TIoException() << "failed to touch " << *this;
358 }
359}
360
361// XXX: move implementation to util/somewhere.
362TFsPath TFsPath::RealPath() const {

Callers 2

Y_UNIT_TESTFunction · 0.45
Y_UNIT_TESTFunction · 0.45

Calls 2

TFileClass · 0.50
IsOpenMethod · 0.45

Tested by

no test coverage detected