NANDSetStatus

C Specification


#include <revolution/nand.h>

s32 NANDSetStatus( const char *path, const NANDStatus *stat );

Arguments

path Specifies the path of the target file or directory.
stat Pointer to a NANDStatus structure.

Return Values

Returns one of the following codes:

NAND_RESULT_OK
NAND_RESULT_ACCESS
NAND_RESULT_CORRUPT
NAND_RESULT_INVALID
NAND_RESULT_NOEXISTS
NAND_RESULT_NOTEMPTY
NAND_RESULT_UNKNOWN
NAND_RESULT_FATAL_ERROR

Description

Sets the status of the specified file or directory. This operation cannot be performed on a file or directory that has an owner ID which is different from the owner ID of the application program. If this operation is performed on a file, the size of the file must be zero.

See Also

NANDStatus, NANDGetStatus, NANDGetStatusAsync, NANDSetStatusAsync

Revision History

06/16/2006 Initial version.