cfclient.file.moveDirectory

Moving a directory

You can move a directory by using the moveDirectory function as shown in the following example:        

<cfset dirobj = cfclient.file.moveDirectory(source,destination)>

Method summary

moveDirectory(source, destination) - move a directory from source to destination

  • returns - DirectoryEntry object
  • params
    • source – Source directory name (absolute or relative path)
    • destination – Absolute or relative path of the destination location (excluding the directory name)

For instance,

<cfset cfclient.file.moveDirectory('dir2','dir1')>

 Adobe

Get help faster and easier

New user?