Last updated on
Apr 27, 2021
|
Also applies to ColdFusion
Renaming a directory
You can rename a directory using the renameDirectory function as shown in the following example:
<cfset dirobj = cfclient.file.renameDirectory(oldName,newName)> |
Method summary
renameDirectory(oldName,newName) - renames the directory with newName
- returns – A DirectoryEntry object
- params
- oldName – The name of directory with absolute or relative path to be renamed
- newName – The new name for the directory with absolute path
For instance,
<cfset cfclient.file.renameDirectory('first','second')> |