MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / StatFile

Method StatFile

common/FileSystem.cpp:1627–1644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1625}
1626
1627bool 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
1646bool FileSystem::StatFile(std::FILE* fp, struct stat* st)
1647{

Callers

nothing calls this directly

Calls 8

TranslateStat64Function · 0.85
GetFileAttributesWFunction · 0.85
CloseHandleFunction · 0.85
TranslateWin32AttributesFunction · 0.85
statClass · 0.70
emptyMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected