next_file

Синтаксис

native next_file(dirh, buffer[], length, &FileType:type = FileType_Unknown);

Употреба

dirh
Handle to a directory
buffer
String buffer to hold directory name
length
Maximum size of string buffer
type
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.