WP_Filesystem_SSH2::rmdir()
Deletes a directory.
Method of the class: WP_Filesystem_SSH2{}
No Hooks.
Return
true|false
. True on success, false on failure.
Usage
$WP_Filesystem_SSH2 = new WP_Filesystem_SSH2(); $WP_Filesystem_SSH2->rmdir( $path, $recursive );
- $path(string) (required)
- Path to directory.
- $recursive(true|false)
- Whether to recursively remove files/directories.
Default: false
Changelog
Since 2.7.0 | Introduced. |
WP_Filesystem_SSH2::rmdir() WP Filesystem SSH2::rmdir code WP 6.6.2
public function rmdir( $path, $recursive = false ) { return $this->delete( $path, $recursive ); }