Lucee Function Reference

directoryexists()

Determines whether a directory exists.

Example

directoryexists(string path,[object allowRealPath]):boolean

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
path string  Yes An absolute path. Alternatively, you can specify IP address as in the following example: DirectoryExists(\"//12.3.123.123/c_drive/test\");  
allowRealPath object  No boolean that defines if relative paths are interpreted or not