Rename file or directory.
FRESULT f_rename ( const XCHAR* OldName, /* Pointer to old file/directory name */ const XCHAR* NewName /* Pointer to new file/directory name */ );
Rename a file or directory and can move it to other directory. Logical drive number is determined by old name, new name must not contain logical drive number.
Available when _FS_READONLY == 0 and _FS_MINIMIZE == 0.
// Rename a file or directory f_rename("oldname.txt", "newname.txt"); // Rename and move a file or directory to other directory simultaneously f_rename("oldname.txt", "dir1/newname.txt");