datasource.directoryExists ^v2.5.727
Checks whether a directory exists.
js
datasource.directoryExists(directoryName)Parameters
| Parameter | Type | Description |
|---|---|---|
directoryName | string | The path of the directory to check. |
Returns
booleantrue when the directory exists, otherwise false.
Examples
js
const exists = datasource.directoryExists("Upload/Images");