dlh_test_server/vendor/topthink/think-swoole/src/rpc/File.php
2024-08-03 10:04:14 +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) {
}
}
}