Lucee Function Reference
Function DIRECTORYRENAME
Renames given directory
Example
directoryrename(string oldPath,string newPath,[boolean createPath]):void
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Description |
---|---|---|---|
oldPath | string | Yes | Absolute path of the directory to be renamed |
newPath | string | Yes | new name for the directory |
createPath | boolean | No | if set to false, expects all parent directories to exist, true (default) will generate necessary directories |