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

Method Copy

util/system/fs.cpp:160–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void NFs::Copy(const TString& existingPath, const TString& newPath) {
161 TUnbufferedFileInput src(existingPath);
162 TUnbufferedFileOutput dst(TFile(newPath, CreateAlways | WrOnly | Seq));
163
164 TransferData(&src, &dst);
165}
166
167bool NFs::Exists(const TString& path) {
168#if defined(_win_)

Callers

nothing calls this directly

Calls 2

TransferDataFunction · 0.85
TFileClass · 0.70

Tested by

no test coverage detected