/**
* 初始化目录
* @param $number
* @return string
*/
private function initDir($number)
{
$path = env('RUNTIME_PATH') . '/files/' . $number . '/';
mkdir($path, 0777, true);
return $path;
}
private function cleanFiles($number)
{
$path = env('RUNTIME_PATH') . '/files/' . $number;
chdir($path);
foreach (glob('*.xls') as $item) {
unlink($item);
}
rmdir($path);
}