FolderExists(path) Last updated: 16. May 2023

API only function

Check whether a folder exists or not within your site.

Parameters

Name Type Description
path string Path to check if a folder exists for.

Returns

True if the folder exists, otherwise false.

Example

Code example (JS)

JS is normal JavaScript either running in the browser or on the Docly™ server.
// Check if there is a folder with name "folder1" that has a sub folder called "subfolder1"
if (docly.folderExists("folder1/subfolder1"))
    write("Folder exists!");