Format: s32 mfsHGetRC(const u8* path)
Arguments:
*path Pathname
Return value:Update counter value (a negative value is an error)
Function: Obtains update counter value of file or directory
Description: This function obtains and returns the update counter value of the file or directory specified by path. Immediately after a file or directory is created, the update counter is set to 0. Whenever data is written to a file or the attribute is changed, the update counter is incremented. The maximum value is 255, and the value cannot be incremented above 255. The update counter of the directory one level up is incremented at the same time. The rewriting of a file by another drive can be detected by checking the update counter.
Main errors:
MFS_ERR_NO Normal termination MFS_ERR_DEVICE Device error An error occurred in an internally called Leo function. Since a Leo function error is stored in the variable mfsError, check this variable to perform processing. MFS_ERR_NOTFOUND File not found The file was not found, or the directory was not found.