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

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