fileCopy

Copies the specified on-disk or in-memory source file to the specified destination file.

fileCopy(source, destination) → returns void

Argument Reference

source string
Required

Path where the file is located currently

destination string
Required

Path where a copy of the file should be placed

Examples
Sample code invoking the fileCopy function

fileCopy(sourceFile, destinationFile);

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub