Skip to content

datasource.directoryExists ^v2.5.727 ​

Checks whether a directory exists.

js
datasource.directoryExists(directoryName)

Parameters ​

ParameterTypeDescription
directoryNamestringThe path of the directory to check.

Returns ​

boolean

true when the directory exists, otherwise false.

Examples ​

js
const exists = datasource.directoryExists("Upload/Images");