WP_Filesystem_ftpsockets::is_dir() – Checks if resource is a directory.

You appear to be a bot. Output may be restricted

Description

Checks if resource is a directory.

Usage

$bool = WP_Filesystem_ftpsockets::is_dir( $path );

Parameters

$path
( string ) required – Directory path.

Returns

bool Whether $path is a directory.

Source

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

1 to 10 of 10
  public function is_dir( $path ) {
    $cwd = $this->WP_Filesystem_ftpsockets::cwd();

    if ( $this->WP_Filesystem_ftpsockets::chdir( $path ) ) {
      $this->WP_Filesystem_ftpsockets::chdir( $cwd );
      return true;
    }

    return false;
  }
 

 View on GitHub View on Trac