nn::fs::GetFileSystemSize Function

Syntax

Result GetFileSystemSize(
     s64 * pTotal,
     s64 * pFree,
     nn::fs::MediaType mediaType
);

Arguments

Name Description
out pTotal Returns the total media capacity.
out pFree Returns the amount of media free space.
in mediaType Specifies the media.

Return Values

Returns the result of the operation.

Description

Gets the total media capacity and amount of free space.

Gets the total capacity and amount of free space for the specified media. The following media types can be specified: MEDIA_TYPE_NAND and MEDIA_TYPE_SDMC.


CONFIDENTIAL