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.
Returns
true|false.
Usage
$File = new File(); $File->is_readable(): bool;
File::is_readable() File::is readable code WC 10.9.4
public function is_readable(): bool {
try {
$filesystem = FilesystemUtil::get_wp_filesystem();
$is_readable = $filesystem->is_file( $this->path ) && $filesystem->is_readable( $this->path );
} catch ( Exception $exception ) {
return false;
}
return $is_readable;
}