| Syntax | $io.list2{directory}[{recurse}]?
|
| Documentation | This function is equivalent to $io.list. It just returns an array instead of a newline separated list.
Returns an array of all files and subdirectories of the specified directory.
If the second parameter is true (1) the list is enhanced by the function recursing itself over all found subdirectories.
Parameters:
1 - directory in SITEFORUM protocol notation
2 - recurse; boolean, optional, defaults to false
Returns:
Throws:
|
| Examples |
| $io.list2{public://} |
| Group | Special |
| Minimum required transaction-mode: | READ=IO |
| Required scripting permission of the developer | PERMISSION_FL_BASIC |
| Minimum parameters | 1 |
| Maximum parameters | 2 |