mfsHRmDir
Syntax
s32 mfsHRmDir(const u8* path)

Arguments

*path Directory name

Return value

Error

Function

Deletes directory

Description

This function deletes the directory specified by path. The directory specified by path must satisfy the following conditions.

* No files exist
* It is not the current working directory
* It is not the root directory

Main errors:

MFS_ERR_NO Normal termination
MFS_ERR_NOTFOUND Directory not found
MFS_ERR_DEVICE Device error
An error occurred in an internally called Leo function.
Since a Leo function error is stored in the variable mfsError, check this variable to perform processing.
MFS_ERR_PROTECT Write protected
The file attribute is write protected, or the volume attribute is write protected, or the parent directory is write protected.