MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / GetOpenFileTime

Method GetOpenFileTime

Libraries/unrar/file.cpp:670–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

668
669
670void File::GetOpenFileTime(RarTime *ft)
671{
672#ifdef _WIN_ALL
673 FILETIME FileTime;
674 GetFileTime(hFile,NULL,NULL,&FileTime);
675 ft->SetWinFT(&FileTime);
676#endif
677#if defined(_UNIX) || defined(_EMX)
678 struct stat st;
679 fstat(GetFD(),&st);
680 ft->SetUnix(st.st_mtime);
681#endif
682}
683
684
685int64 File::FileLength()

Callers

nothing calls this directly

Calls 2

SetWinFTMethod · 0.80
SetUnixMethod · 0.80

Tested by

no test coverage detected