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

Method Temporary

util/system/file.cpp:1338–1341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1336}
1337
1338TFile TFile::Temporary(const TString& prefix) {
1339 // TODO - handle impossible case of name collision
1340 return TFile(prefix + ToString(MicroSeconds()) + "-" + ToString(RandomNumber<ui64>()), CreateNew | RdWr | Seq | Temp | Transient);
1341}
1342
1343TFile TFile::ForAppend(const TString& path) {
1344 return TFile(path, OpenAlways | WrOnly | Seq | ::ForAppend);

Callers

nothing calls this directly

Calls 3

MicroSecondsFunction · 0.85
TFileClass · 0.70
ToStringFunction · 0.50

Tested by

no test coverage detected