native next_file(dirh, buffer, length, &FileType:type = FileType_Unknown);
Handle to a directory
String buffer to hold directory name
Maximum size of string buffer
Optional variable to store the file type. FileType_* constants
Reads the next directory entry as a local filename.
Contents of buffers are undefined when returning false.
Both the '.' and '..' automatic directory entries will be retrieved for Windows and Linux.
1 on success, 0 if there are no more files to read.