Description

Copies the contents of a directory to a destination directory.

Returns

Nothing

History

ColdFusion 10: Added this function.

Syntax

directoryCopy (source, destination[ , recurse][, filter])

Properties

Parameter

Description

source

Absolute pathname of directory from which you copy content.

destination

Path of the destination directory. If not an absolute path, it is relative to the source directory.

recurse

By default, false. If true, copies the subdirectories.

filter

File extension filter applied, for example, *.cfm.

Example

directoryCopy(sourceDirExists,destDirExists,true,"*.cfm")

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