ReadDirEntry

Last Updated2007-05-18
Created At2007-01-01

Reads the current directory entry as a local filename, then moves to the next file.

Notes

Contents of buffers are undefined when returning false.

Both the '.' and '..' automatic directory entries will be retrieved for Windows and Linux.

native bool ReadDirEntry(Handle dir, char[] buffer, int maxlength, FileType& type = FileType_Unknown)

Parameters

Handle dir
Handle to a directory.
char[] buffer
String buffer to hold directory name.
int maxlength
Maximum size of string buffer.
FileType& type
Optional variable to store the file type.

Return Value

bool True on success, false if there are no more files to read.

Error

Invalid or corrupt Handle.