src/mako/file/FileSystem.php
public static function truncate(string $file, bool $lock = false): bool
	{
		return (0 === file_put_contents($file, null, $lock ? LOCK_EX : 0));
	}
public static function truncate(string $file, bool $lock = false): bool
	{
		return (0 === file_put_contents($file, null, $lock ? LOCK_EX : 0));
	}
public static function truncate ( string $ file , bool $ lock = false ) : bool { return ( 0 === file_put_contents ( $ file , null , $ lock ? LOCK_EX : 0 ) ) ; }
Truncates a file.

@param  string $file File path
@param  bool   $lock Acquire an exclusive write lock?
@return bool
Truncates a file .