| 413 | } |
| 414 | |
| 415 | u64 DiskFile::GetFileSize(std::string filename) |
| 416 | { |
| 417 | std::wstring wfilename = utf8::Utf8ToWide(filename); |
| 418 | struct _stati64 st; |
| 419 | if ((0 == _wstati64(wfilename.c_str(), &st)) && (0 != (st.st_mode & S_IFREG))) |
| 420 | { |
| 421 | return st.st_size; |
| 422 | } |
| 423 | else |
| 424 | { |
| 425 | return 0; |
| 426 | } |
| 427 | } |
| 428 | |
| 429 | bool DiskFile::FileExists(std::string filename) |
| 430 | { |
nothing calls this directly
no test coverage detected