MongoosePeople. Places. Questionable inventions.

All help topics · Link to this topic

Showing help on 'file_list()'

Function: LIST file_list(STR pathname, [ANY detailed])

Attempts to list the contents of the given directory. Returns a list
of files in the directory. If the detailed argument is provided and
true, then the list contains detailed entries, otherwise it contains a
simple list of names.

detailed entry:
{STR filename, STR file type, STR file mode, INT file size}
normal entry:
STR filename

This is implemented using opendir() and readdir(); output order is not guaranteed.