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

fileCopy(source, destination) → returns void

fileCopy Argument Reference

source string

Path where the file is located currently

destination string

Path where a copy of the file should be placed

Examples sample code invoking the fileCopy function

Copy file from here to there

fileCopy(sourceFile, destinationFile);

Fork me on GitHub