Copy the desired file with a newer file, with different path and/or filename.
Syntax |
copyFile(string source, string target, uint flags): bool |
---|---|
source |
Name of the source file |
target |
Name of the target file |
flags |
Setting for the operation |
Result |
Return operation logical result |
Available settings (flags) are the following:
Label |
Description |
---|---|
XFileSystem_Overwrite |
Overwrite existing target file |
Notes:
•Jolly character are not allowed in the name of the file (source/target).
•Relative name of file (source/target) will be referred to current directory path (see dirPath() method).
•The method will fail if the target file exist and the XFileSystem_Overwrite flag is not set.