cfclient.file.renameDirectory

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

 Adobe

Get help faster and easier

New user?

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX 2024

Adobe MAX
The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online