Automattic\WooCommerce\Internal\Admin\Logging\FileV2

File::create()protectedWC 1.0

Create and set permissions on the file.

Method of the class: File{}

No Hooks.

Return

true|false.

Usage

// protected - for code of main (parent) or child class
$result = $this->create(): bool;

File::create() code WC 8.7.0

protected function create(): bool {
	global $wp_filesystem;

	$created = $wp_filesystem->touch( $this->path );
	$modded  = $wp_filesystem->chmod( $this->path );

	return $created && $modded;
}