cfclient.file.copyDirectory

Copying  a directory

You can copy a directory by using the copyDirectory function as shown in the following example:

<cfset cfclient.file.copyDirectory(source,destination)>


Method summary

copyDirectory (source, destination) - copy directory from source to destination

  • returns – None
  • params

-          source – The source directory name with absolute or relative path

-          destination – Absolute or relative path of  the destination location (excluding directory name)

For instance,

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

Examples

See Using the File APIs  

Get help faster and easier

New user?