| 136 | } |
| 137 | |
| 138 | static 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 | |
| 152 | static bool GetStatByName(TSystemFStat& fs, const char* fileName, bool nofollow) { |
| 153 | #ifdef _win_ |
no test coverage detected