read_dir

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

Reads content from directory

Notes
  • 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.
Parameters
  • 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
Returns

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

Назад
Верх