The path_remove_directory()
function removes a directory specified by the given path. It requires the PATH_REMOVE_DIRECTORY
right to be set on the directory.
On POSIX systems, a similar functionality is provided by the rmdir()
function. It removes an empty directory with the specified path. The rmdir()
function is part of the POSIX standard and is widely supported across different platforms.
Note
The path_remove_directory()
function removes a directory specified by the given path. It checks if the directory is empty and has the necessary rights to be removed. On POSIX systems, a similar functionality is provided by the rmdir()
function.