- Documentation
- Shared functions
- fileCopy
Function
fileCopy
Copies a file to a new path. An existing target file is overwritten only with overwrite = true.
Syntax
bool fileCopy(string filePath, string copyToFilePath [, bool overwrite = false])Arguments
filePathstring- Source file.
copyToFilePathstring- Copy path.
overwritebool, optional = falsetrue= overwrite an existing one.
Returns
true on success.
Example
fileCopy("accounts.json", "backup/accounts.json", true)