|Top Previous Next|
Renames a file or folder, or moves a file or folder between folders.
File.move(srcPath, srcFolder, dstPath [, dstFolder])
Zero if successful; a negative number representing an error code if failure.
If the combination of srcFolder and srcPath are in the same folder as the combination of dstFolder and dstPath, then this function renames the file or folder in that folder. Otherwise, the file or folder is moved to a new folder.
The file or folder being moved or renamed must not be open.