$runtimePath = \Yii::$app->getRuntimePath();
$file = $runtimePath . "/test.log";
// 拷贝文件
FileHelper::cpFile($file, $runtimePath . "/xxx.log");
// 删除文件
FileHelper::unlink($runtimePath . "/xxx.log");
// 获取文件内容
$content = FileHelper::getContent($file);
var_dump($content);
// 写入文件内容
FileHelper::putContent($file, "哎呀\n");
// 创建文件夹
FileHelper::mkdir($runtimePath . "/good/test/xx/xxx", 0777, true);
// 删除文件夹
$status = FileHelper::rmdir($runtimePath . "/good/test", true);
var_dump($status);
// 复制目录
FileHelper::cpDir($runtimePath . "/cache", $runtimePath . "/cache11");