Automattic\WooCommerce\Internal\Admin\Logging\FileV2
File::is_readable()
Check if the file represented by the class instance is a file and is readable.
Method of the class: File{}
No Hooks.
Return
true|false
.
Usage
$File = new File(); $File->is_readable(): bool;
Notes
- Global. WP_Filesystem_Direct. $wp_filesystem
File::is_readable() File::is readable code WC 8.7.0
public function is_readable(): bool { global $wp_filesystem; return $wp_filesystem->is_file( $this->path ) && $wp_filesystem->is_readable( $this->path ); }