#include <GFile.h>
Public Member Functions | |
int | First (const char *Path, const char *Pattern) |
Starts the search. The entries '.' and '..' are never returned. The default pattern returns all files. | |
int | Next () |
Get the next match. | |
int | Close () |
Finish the search. | |
bool | Path (char *s, int len=-1) |
Constructs the full path of the current directory entry. | |
GDirectory * | Clone () |
Creates an copy of this type of GDirectory class. | |
long | GetAttributes () |
Gets the current entries attributes (platform specific). | |
bool | IsDir () |
Returns true if the entry is a sub-directory. | |
bool | IsHidden () |
Returns true if the entry is hidden. This is equivilant to a attribute flag on win32 and a leading '.' on unix. | |
bool | IsReadOnly () |
Returns true if the entry is read only. | |
char * | GetName () |
Gets the name of the current entry. (Doesn't include the path). | |
const uint64 | GetCreationTime () |
Gets the entries creation time. You can convert this to an easy to read for using GDateTime. | |
const uint64 | GetLastAccessTime () |
Gets the entries last access time. You can convert this to an easy to read for using GDateTime. | |
const uint64 | GetLastWriteTime () |
Gets the entries last modified time. You can convert this to an easy to read for using GDateTime. | |
const uint64 | GetSize () |
Returns the size of the entry. | |
int | GetUser (bool Group) |
Gets the user id of the current entry. (Doesn't have any meaning on Win32). | |
int | GetType () |
Gets the type code of the current entry. See the VT_?? defines for possible values. |
int GDirImpl::First | ( | const char * | Name, | |
const char * | Pattern | |||
) | [virtual] |
Starts the search. The entries '.' and '..' are never returned. The default pattern returns all files.
Implements GDirectory.
References Close(), DIR_CHAR, GetName(), LGI_ALL_FILES, and Next().
int GDirImpl::Next | ( | ) | [virtual] |
Get the next match.
Implements GDirectory.
References GetName().
Referenced by First().
int GDirImpl::Close | ( | ) | [virtual] |
bool GDirImpl::Path | ( | char * | s, | |
int | BufSize = -1 | |||
) | [virtual] |
Constructs the full path of the current directory entry.
Implements GDirectory.
References GetName().