DirectoryExists()
Determines whether a directory exists.
DirectoryExists( path=string, allowRealPath=object );
Returns: Boolean
| Argument | Description |
|---|---|
|
path
string,
required
|
edit
An absolute path. Alternatively, you can specify IP address as in the following example: DirectoryExists("//12.3.123.123/c_drive/test"); Alias: absolute_path, absolutePath |
|
allowRealPath
object,
optional
|
edit
boolean that defines if relative paths are interpreted or not |
Examples
editdirectoryExists("directoryPath");
See also
- Decision logic
- File handling
- DirectoryCopy()
- DirectoryCreate()
- DirectoryDelete()
- DirectoryList()
- DirectoryRename()
- <cfdirectory>
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)