WP_Filesystem_SSH2::is_file() – Checks if resource is a file.

You appear to be a bot. Output may be restricted

Description

Checks if resource is a file.

Usage

$bool = WP_Filesystem_SSH2::is_file( $file );

Parameters

$file
( string ) required – File path.

Returns

bool Whether $file is a file.

Source

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

1 to 3 of 3
  public function is_file( $file ) {
    return is_file( $this->WP_Filesystem_SSH2::sftp_path( $file ) );
  }
 

 View on GitHub View on Trac