Rename the desired file with a new path and/or filename.
Syntax |
renameFile(string source, string target): bool |
---|---|
source |
Name of the source file |
target |
Name of the target file |
Result |
Return operation logical result |
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).
•On most file systems, renameFile() fails only if source does not exist or if target and source are not on the same partition. On Windows, renameFile() will fail if target already exists.