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

Method MakeFromFileName

util/system/fstat.cpp:193–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191bool TFileStat::operator==(const TFileStat& other) const noexcept = default;
192
193void TFileStat::MakeFromFileName(const char* fileName, bool nofollow) {
194 TSystemFStat st;
195 if (GetStatByName(st, fileName, nofollow)) {
196 MakeStat(*this, st);
197 } else {
198 *this = TFileStat();
199 }
200}
201
202TFileStat::TFileStat(const TFsPath& fileName, bool nofollow) {
203 MakeFromFileName(fileName.GetPath().data(), nofollow);

Callers

nothing calls this directly

Calls 3

GetStatByNameFunction · 0.85
MakeStatFunction · 0.85
TFileStatClass · 0.85

Tested by

no test coverage detected