Files
huangjingfen/pro_v3.5.1/vendor/topthink/think-swoole/src/rpc/File.php
panchengyong 7acbf45ff7 new files
2026-03-07 22:29:07 +08:00

21 lines
341 B
PHP
Executable File

<?php
namespace think\swoole\rpc;
use Throwable;
class File extends \think\File
{
public function __destruct()
{
//销毁时删除临时文件
try {
if (file_exists($this->getPathname())) {
unlink($this->getPathname());
}
} catch (Throwable $e) {
}
}
}