Skip to content

datasource.directoryExists ^v2.5.727

Returns a boolean of the directory being found in the MODLR file system.

js
datasource.directoryExists(directoryName);
datasource.directoryExists(directoryName);

Parameters

  • directoryName - The file path and name of the directory to check.

Example

js
let res = datasource.directoryExists("Export");
let res = datasource.directoryExists("Export");
js
let res = datasource.directoryExists("Upload/Images");
let res = datasource.directoryExists("Upload/Images");