mfsRomGetFileAttr
mfsRamGetFileAttr

Syntax
s32 mfsRomGetFileAttr(MfsDirID dirID)
s32 mfsRamGetFileAttr(MfsDirID dirID)

Arguments

dirID Directory ID of file (directory)

Return value

Attribute of file (directory) (a negative value is an error)

Function

Obtains attribute of file (directory)

Description

This function obtains and returns the attribute of the file or directory specified by dirID. The attribute, which is represented by u16-type bits, can have the following contents.

MFS_FILE_ATTR_DIRECTORY 0x8000 Directory
MFS_FILE_ATTR_FILE 0x4000 File
MFS_FILE_ATTR_FORBID_W 0x2000 Write protected
MFS_FILE_ATTR_FORBID_R 0x1000 Read protected
MFS_FILE_ATTR_HIDDEN 0x0800 Hidden file
MFS_FILE_ATTR_ENCODE 0x0400 Encoded file
MFS_FILE_ATTR_COPYLIMIT 0x02000 Copy limited

Main errors
MFS_ERR_NO Normal termination
MFS_ERR_NOTFOUND Specified directory not found