WP_Filesystem_Direct::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_Direct::exists( $path );

Parameters

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

Returns

bool Whether $path exists or not.

Source

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

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

 View on GitHub View on Trac