$io.listFiles2

Returns an array of all files contained in the specified directory.
Syntax$io.listFiles2{directory}[{recurse}]?
Documentation$io.listFiles2:
Returns an array of all files contained in the specified directory. If recurse is true the list is enhanced by the function recursing itself into all subdirectories of the given directory.

    Parameters:
      1 - directory, in SITEFORUM protocol notation 2 - recurse; boolean, optional, defaults to false
    Returns:
      Array of filenames.
Examples
$io.listFiles2{public://}
GroupSpecial
Minimum required transaction-mode:READ=IO
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters1
Maximum parameters 2