M2M_API_RESULT m2m_fs_rename_dir(CHAR *oldpath, CHAR *newdirname)
Description: the function renames a directory entry.
Parameters:
oldpath: pointer to the
zero-terminated string containing the full path of the directory to be
renamed.
newdirname: pointer to the zero-terminated string containing only the new directory 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.