WP_Filesystem_Base::rmdir()publicWP 2.5.0

Deletes a directory.

Method of the class: WP_Filesystem_Base{}

No Hooks.

Return

true|false. True on success, false on failure.

Usage

$WP_Filesystem_Base = new WP_Filesystem_Base();
$WP_Filesystem_Base->rmdir( $path, $recursive );
$path(string) (required)
Path to directory.
$recursive(true|false)
Whether to recursively remove files/directories.
Default: false

Changelog

Since 2.5.0 Introduced.

WP_Filesystem_Base::rmdir() code WP 6.5.2

public function rmdir( $path, $recursive = false ) {
	return false;
}