nn::fs::RenameDirectory Function

Syntax

void RenameDirectory(
     const wchar_t * currentPath,
     const wchar_t * newPath
);

void RenameDirectory(
     const char * currentPath,
     const char * newPath
);

List of Overloaded Member Functions

RenameDirectory ( const wchar_t *, const wchar_t * ) Renames a directory.
RenameDirectory ( const char *, const char * ) Renames a directory.

Description of RenameDirectory ( const wchar_t *, const wchar_t * )

This function is implemented to show an error screen when errors occur internally, whether or not such errors are fatal. Control does not return from the function in this case. Use nn::fs::TryRenameDirectory on everything other than ROM archives.

To read details about error handling, see Handling Errors During File and Directory Operations.

Description of RenameDirectory ( const char *, const char * )


Note: This function uses a large amount of buffer space on the stack because it converts the path name from a multibyte character string into a wide character string. Pay careful attention to the stack size.

This function is implemented to show an error screen when errors occur internally, whether or not such errors are fatal. Control does not return from the function in this case. Use nn::fs::TryRenameDirectory on everything other than ROM archives.

To read details about error handling, see Handling Errors During File and Directory Operations.


CONFIDENTIAL