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

Get help faster and easier

New user?