datasource.folders
Lists the sub-directories in a directory.
js
datasource.folders(directoryName)Parameters
| Parameter | Type | Description |
|---|---|---|
directoryName | string | The path of the directory. |
Returns
string[]The names of the sub-directories. Each is just the folder's name, not its full path. Empty when the directory doesn't exist.
Examples
js
const folderList = datasource.folders("my_directory/");