You are currently viewing the documentation for:
The ECF_Rename function renames a file or directory.
ECF_ErrorCode ECF_Rename(
   const char *oldPath,
   const char *newPath
This is the path of the file or directory to rename.
This is the new path of the file or directory. The maximum total path length including the trailing NUL character is 260 characters.
Return value
Returns one of the EcFAT error codes (ECFERR_SUCCESS on success)
oldPath and newPath must be on the same drive. The subdirectories in the new path does not need to exist. If they don't exist, they will be created. You must not rename an open file or a directory that is being scanned.