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

Function GetStatByHandle

util/system/fstat.cpp:138–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138static bool GetStatByHandle(TSystemFStat& fs, FHANDLE f) {
139#ifdef _win_
140 if (!GetFileInformationByHandle(f, &fs)) {
141 return false;
142 }
143 if (fs.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) {
144 fs.ReparseTag = NFsPrivate::WinReadReparseTag(f);
145 }
146 return true;
147#else
148 return !fstat(f, &fs);
149#endif
150}
151
152static bool GetStatByName(TSystemFStat& fs, const char* fileName, bool nofollow) {
153#ifdef _win_

Callers 2

GetStatByNameFunction · 0.85
TFileStatMethod · 0.85

Calls 2

WinReadReparseTagFunction · 0.85
fstatFunction · 0.50

Tested by

no test coverage detected