s32 mfsRamGetFileNum(MfsDirID dirID,u16 attr) s32 mfsRomGetFileNum(MfsDirID dirID,u16 attr)
Arguments
Return value
Function
Description
This function obtains the number of files or directory files in the directory specified by dirID. When MFS_ALL_FILES is specified for dirID, this function returns the total number of files or directories in the RAM or ROM area.
Main errors
MFS_ERR_NOTMFSDISK | Not an MFS-format disk
The disk ID's disk use is not 1, or the header is different. |
MFS_ERR_VERSION | Different version disk |
MFS_ERR_PROTECT | Write protected
The medium is volume protected. |