![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cFileDir.h>
Public Member Functions | |
cFileFindEntry () | |
cFileFindEntry (const FILECHAR_t *pszFileName) | |
cFileFindEntry (const FILECHAR_t *pszFileName, const cFileStatus &status) | |
bool | IsFileEqualTo (const THIS_t &rEntry) const |
bool | IsFileEqualTo (const THIS_t *pEntry) const |
bool | operator== (const THIS_t &rEntry) const |
bool | operator!= (const THIS_t &rEntry) const |
bool | isDot () const |
bool | isDots () const noexcept |
cStringF | get_Name () const |
![]() | |
cFileStatus () | |
cFileStatus (const FILECHAR_t *pszFilePath) | |
void | InitFileStatus () |
void | InitFileStatus (const cFileStatusSys &statusSys) |
bool | UpdateLinuxHidden (const FILECHAR_t *pszName) noexcept |
bool | isFileValid () const noexcept |
bool | IsSameChangeFileTime (const cTimeFile &t2) const noexcept |
(accurate to 2 seconds) More... | |
bool | IsSameChangeTime (const cTimeInt &t2) const noexcept |
bool | IsFileEqualTo (const THIS_t &rFileStatus) const noexcept |
bool | IsFileEqualTo (const THIS_t *pFileStatus) const noexcept |
bool | IsAttrMask (FILEATTR_MASK_t dwAttrMask=FILEATTR_ReadOnly) const noexcept |
bool | isAttrDir () const noexcept |
bool | isAttrHidden () const noexcept |
FILE_SIZE_t | GetFileLength () const noexcept |
HRESULT | ReadFileStatus (const FILECHAR_t *pszFilePath, bool bFollowLink=false) |
Public Attributes | |
cStringF | m_sFileName |
relative file title. (NOT FULL PATH) checks USE_UNICODE_FN and FILECHAR_t. More... | |
![]() | |
cTimeFile | m_timeCreate |
m_ctime = (may not be supported by file system). More... | |
cTimeFile | m_timeChange |
m_mtime = real world time/date of last modification. (FAT32 only accurate to 2 seconds) // All OS support this. More... | |
cTimeFile | m_timeLastAccess |
m_atime = time of last access/Open. (For Caching). (may not be supported by file system) More... | |
FILE_SIZE_t | m_Size |
file size in bytes. size_t. not always accurate for directories. (-1) More... | |
FILEATTR_MASK_t | m_Attributes |
Mask of FILEATTR_TYPE_ attribute bits. FILEATTR_None. More... | |
Additional Inherited Members | |
![]() | |
static bool | IsLinuxHidden (const FILECHAR_t *pszName) noexcept |
static COMPARE_t __stdcall | CompareChangeFileTime (const cTimeFile &t1, const cTimeFile &t2) |
(accurate to 2 seconds) More... | |
static TIMESEC_t __stdcall | MakeFatTime (TIMESEC_t tTime) noexcept |
static COMPARE_t __stdcall | CompareChangeTime (const cTimeInt &t1, const cTimeInt &t2) noexcept |
static HRESULT __stdcall | WriteFileAttributes (const FILECHAR_t *pszFilePath, FILEATTR_MASK_t dwAttributes) |
static HRESULT __stdcall | WriteFileTimes (const FILECHAR_t *pszFilePath, const cTimeFile *pTimeCreate, const cTimeFile *pTimeChange=nullptr) |
static HRESULT __stdcall | WriteFileTimes (const FILECHAR_t *pszFilePath, const cFileStatus &rFileStatus) |
static HRESULT __stdcall | ReadFileStatus2 (const FILECHAR_t *pszFilePath, cFileStatus *pFileStatus=nullptr, bool bFollowLink=false) |
static bool __stdcall | Exists (const FILECHAR_t *pszFilePath) |
The file as part of a directory listing. Assume this is part of a list.
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
ignore the . and .. that old systems can give us.
cStringF Gray::cFileFindEntry::m_sFileName |
relative file title. (NOT FULL PATH) checks USE_UNICODE_FN and FILECHAR_t.