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  

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