File.copy(sourcePath,destinationPath,silent)

Copies a file from sourcePath to destinationPath. EXAMPLE: // Copy "testfile" to "copytestfile" copy testfile using sourcePath = "/tmp/testfile.txt", destinationPath = "/tmp/copytestfile.txt", silent = false

Arguments:

Name Type Description Mode
sourcePath String source file's pathname (copy from). in
destinationPath String destination file's pathname (copy to). in
silent Bool Ignore error.Optional. in