For the complete documentation index, see llms.txt. This page is also available as Markdown.

FileCopy

Copies a file from one location to another.

The destionation can be a file or a directory. If the destination is a directory, the source file name will be appended to the destination.

Method Signature

FileCopy(source=[boxfile], destination=[boxfile], createPath=[boolean], overwrite=[boolean], accept=[string])

Arguments

Argument
Type
Required
Description
Default

source

boxfile

true

The source file

destination

boxfile

true

A destionation file or directory, if it's a directory, the suorce file name will be appended

createPath

boolean

false

[ true ] whether to create any nested paths required to the new file

true

overwrite

boolean

false

Whether to overwrite the destination file if it exists. Defaults to true.

true

accept

string

false

A comma separated list of file extensions to accept - which will override runtime security settings

Examples

Copy file from here to there

fileCopy( sourceFile, destinationFile );

Additional Examples

Last updated

Was this helpful?