Automattic\WooCommerce\Internal\Admin\Logging\FileV2
File::is_writable
Check if the file represented by the class instance is a file and is writable.
Method of the class: File{}
No Hooks.
Returns
true|false.
Usage
$File = new File(); $File->is_writable(): bool;
File::is_writable() File::is writable code WC 10.9.1
public function is_writable(): bool {
try {
$filesystem = FilesystemUtil::get_wp_filesystem();
$is_writable = $filesystem->is_file( $this->path ) && $filesystem->is_writable( $this->path );
} catch ( Exception $exception ) {
return false;
}
return $is_writable;
}