Summery Summery
Checks if resource is a directory.
Syntax Syntax
Parameters Parameters
- $path
-
(Required) Directory path.
Return Return
(bool) Whether $path is a directory.
Source Source
File: wp-admin/includes/class-wp-filesystem-ftpext.php
* Checks if resource is a file. * * @since 2.5.0 * * @param string $file File path. * @return bool Whether $file is a file. */ public function is_file( $file ) { return $this->exists( $file ) && ! $this->is_dir( $file );
Advertisement
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |