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')>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy