WP_Filesystem_SSH2::exists() – Checks if a file or directory exists.

You appear to be a bot. Output may be restricted

Description

Checks if a file or directory exists.

Usage

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

Parameters

$file
( string ) required – Path to file or directory.

Returns

bool Whether $file exists or not.

Source

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

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

 View on GitHub View on Trac