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

Method HardLink

util/system/fs.cpp:119–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119bool NFs::HardLink(const TString& existingPath, const TString& newPath) {
120#if defined(_win_)
121 return NFsPrivate::WinHardLink(existingPath, newPath);
122#elif defined(_unix_)
123 return (0 == link(existingPath.data(), newPath.data()));
124#endif
125}
126
127bool NFs::SymLink(const TString& targetPath, const TString& linkPath) {
128#if defined(_win_)

Callers

nothing calls this directly

Calls 3

WinHardLinkFunction · 0.85
linkFunction · 0.50
dataMethod · 0.45

Tested by

no test coverage detected