listtree
Description
Lists the files and folders in the specified folder.
Syntax
array listtree (string $path, string $subpath)
Parameter $path
Expected type: String
Description: The path to the directory you want to see the contents of
Parameter $subpath
Expected type: String
Description: If set, the path from the above directory to the directory you want to see the contents of (used to remember what the parent directory is)
Return value
Expected type: Array
Description:
Array Elements | |||
Key | Optional | Expected type | Description |
file | no | String | The name of a file or directory |
size | no | String | The size of the file/directory |
skipped | no | Boolean | Whether or not the file/directory was skipped |
Notes
- This is used to display all the files and folders within a package and such...