rename Function

Renaming a file

You can rename a file using the rename function as shown in the following example:       

<cfset fileobj = cfclient.file.rename(oldName,newName)>

Method summary

rename(oldName,newName) - renames the file with newName

  • returns – A FileEntry object
  • params
    • oldName – The name of file (absolute/relative path) to be renamed
    • newName – The new name for the file with absolute/relative path

 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