WP_Filesystem_SSH2::rmdir() – Deletes a directory.

You appear to be a bot. Output may be restricted

Description

Deletes a directory.

Usage

$bool = WP_Filesystem_SSH2::rmdir( $path, $recursive );

Parameters

$path
( string ) required – Path to directory.
$recursive
( bool ) optional – Optional. Whether to recursively remove files/directories. Default false.

Returns

bool True on success, false on failure.

Source

File name: wordpress/wp-admin/includes/class-wp-filesystem-ssh2.php
Lines:

1 to 3 of 3
  public function rmdir( $path, $recursive = false ) {
    return $this->WP_Filesystem_SSH2::delete( $path, $recursive );
  }
 

 View on GitHub View on Trac