| 1625 | } |
| 1626 | |
| 1627 | bool FileSystem::StatFile(const char* path, struct stat* st) |
| 1628 | { |
| 1629 | // has a path |
| 1630 | if (path[0] == '\0') |
| 1631 | return false; |
| 1632 | |
| 1633 | // convert to wide string |
| 1634 | const std::wstring wpath = GetWin32Path(path); |
| 1635 | if (wpath.empty()) |
| 1636 | return false; |
| 1637 | |
| 1638 | struct _stat64 st64; |
| 1639 | if (_wstat64(wpath.c_str(), &st64) != 0) |
| 1640 | return false; |
| 1641 | |
| 1642 | TranslateStat64(st, st64); |
| 1643 | return true; |
| 1644 | } |
| 1645 | |
| 1646 | bool FileSystem::StatFile(std::FILE* fp, struct stat* st) |
| 1647 | { |
nothing calls this directly
no test coverage detected