FileCopy
Last updated
Was this helpful?
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.
FileCopy(source=[boxfile], destination=[boxfile], createPath=[boolean], overwrite=[boolean], accept=[string])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
fileCopy( sourceFile, destinationFile );
Last updated
Was this helpful?
Was this helpful?
fileCopy( "path/to/my/file.md", "new/location/for/file.md" );
