
The MOVE command can be used to move files between directories and also to rename files.
MOVE requires two arguments, the first one is the current path and name of the file and the second one is the new path/name. MOVE is also able to move or rename directories.
ERR_OK (0) f the file or directory was moved or renamed successfully.
ERR_FR_XX (13...25) File system error if anything's gone wrong while trying to move or rename a file or directory.
ERR_FILE_OPEN (32) If an attempt was made to move or rename a file that is open for reading or writing.
MOVE subdir/test.txt hello.txt
Moves the file "test.txt" from the directory "subdir" to the root directory and renames it to "hello.txt"
MOVE before after
Renames a file or directory in the root directory from "before" to "after"
New since version 4.57!
Files that are currently open cannot be moved. Do not move or rename directories which contain files that are open for reading or writing.