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

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