nstd_fs_rename

Function nstd_fs_rename 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn nstd_fs_rename( from: &NSTDStr, to: &NSTDStr, ) -> NSTDIOError
Available on crate feature fs only.
Expand description

Renames a file or directory, replacing the destination if it already exists.

§Parameters:

  • const NSTDStr *from - The original name of the file/directory.

  • const NSTDStr *to - The new name of the file/dir.

§Returns

NSTDIOError errc - The I/O operation error code.

§Safety

This operation can cause undefined behavior if either to or from’s data is invalid.