Summery Summery
Checks if a file or directory exists.
Syntax Syntax
Parameters Parameters
- $file
-
(Required) Path to file or directory.
Return Return
(bool) Whether $file exists or not.
Source Source
File: wp-admin/includes/class-wp-filesystem-direct.php
if ( ! $recursive && $this->is_dir( $file ) ) { return @rmdir( $file );
Advertisement
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |