Removes a directory with a specified name.
#include <prio.h> PRStatus PR_RmDir(const char *name);
The function has the following parameter:
name
PR_SUCCESS
.PR_FAILURE
. The actual reason can be retrieved via PR_GetError
.PR_RmDir
removes the directory specified by the pathname name
. The directory must be empty. If the directory is not empty, PR_RmDir
fails and PR_GetError
returns the error code PR_DIRECTORY_NOT_EMPTY_ERROR
.