read_dir

Синтаксис

native read_dir(const dirname[], pos, output[], len, &outlen = 0);

Употреба

dirname
Path to open
pos
Index the element
output
String buffer to hold content
len
Maximum size of string buffer
outlen
Number of characters written to the buffer

Описание

Reads content from directory

Забележка

This native is expensive. Consider the use of open_dir(), next_file() and close_dir() instead.

Забележка

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

Връщаща стойност

Returns index of next element, otherwiwe 0 when end of dir is reached