WP_Filesystem_Base::exists
Checks if a file or directory exists.
Method of the class: WP_Filesystem_Base{}
No Hooks.
Returns
true|false. Whether $path exists or not.
Usage
$WP_Filesystem_Base = new WP_Filesystem_Base(); $WP_Filesystem_Base->exists( $path );
- $path(string) (required)
- Path to file or directory.
Changelog
| Since 2.5.0 | Introduced. |
WP_Filesystem_Base::exists() WP Filesystem Base::exists code WP 7.0
public function exists( $path ) {
return false;
}