WP_Filesystem_Direct::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_Direct::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-direct.php
Lines:

1 to 3 of 3
  public function is_dir( $path ) {
    return @is_dir( $path );
  }
 

 View on GitHub View on Trac