Whatever message this page gives is out now! Go check it out!

DirectoryCopy

Last update:
May 18, 2026

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

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page