nn::fs::TryRenameFile Function

Syntax

Result TryRenameFile(
     const wchar_t * currentPath,
     const wchar_t * newPath
);

Result TryRenameFile(
     const char * currentPath,
     const char * newPath
);

List of Overloaded Member Functions

TryRenameFile(const wchar_t *, const wchar_t *) Renames a file.
TryRenameFile(const char *, const char *) Renames a file.

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

This function returns any error that occurs while it is renaming the file.

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

This function returns any error that occurs while it is renaming the file.
Note: This function uses a large amount of buffer space on the stack because it converts the path name from a multibyte string into a wide string. Pay careful attention to the stack size.


CONFIDENTIAL