nn::fs::GetArchiveFreeBytes Function

Syntax

Result GetArchiveFreeBytes(
s64 * pOut,
const char * archiveName
);

Arguments

Name Description
out pOut Returns the amount of free archive space.
in archiveName Specifies the archive name.

Return Values

Returns the result of the operation.

Description

Gets the amount of free space in the archive.

This function can only be used for save data archives. Save data regions are managed in units of fixed size (blocks). One block's size is 512 bytes. As a result the value returned by this function is a multiple of 512 bytes.
When this function returns 1024, you can create two files of 512 bytes, but when you create one file of 513 bytes, there is no available space left remaining.

Revision History

2010/11/13
Added descriptions of the block size. Changed the type of the archiveName argument from wchart_t* to const char*.
2010/11/09
Initial version.

CONFIDENTIAL