WP_Filesystem_Base::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_Base::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-base.php
Lines:

1 to 3 of 3
  public function exists( $file ) {
    return false;
  }
 

 View on GitHub View on Trac