M2M_API_RESULT m2m_fs_rename(CHAR *oldfilename, CHAR *newfilename)
Description: the function renames a file. Close the file before attempting to rename it.
Parameters:
oldfilename: pointer to the
zero-terminated string containing the full path of the file to be
renamed.
newfilename: pointer to the zero-terminated string containing only
the new file name. Do not use the
full path.
Return
value:
refer to
M2M_API_RESULT enum
NOTE: m2m_fs_last_error function returns the failure reason.