list_directory
Get the contents of a directory.
list_directory("path/to/your/directory");
Syntax
list_directory(path)
Returns
An array of objects declared as {path: "string", type: "string"}
- where
pathrefers to the full path name of the element. - where
typerefers to the element type (ffor file anddfor directory)
Notes
- Expects a path to a DIRECTORY, not a file.