[2] ErrorException in common.php line 123

unlink(/home/shifu248suhki3fjub254/wwwroot/caches/temp//f0b1e71a4ea83b1a40f2db424f8c9115.php): No such file or directory

  1. }
  2. if (!function_exists('dir_del')) {
  3. //删除根据目录删除子文件
  4. function dir_del($dirpath){
  5. $dh=opendir($dirpath);
  6. while (($file=readdir($dh))!==false) {
  7. if($file!="." && $file!="..") {
  8. $fullpath=$dirpath."/".$file;
  9. if(!is_dir($fullpath)) {
  10. unlink($fullpath);
  11. } else {
  12. dir_del($fullpath);
  13. @rmdir($fullpath);
  14. }
  15. }
  16. }
  17. closedir($dh);
  18. $isEmpty = true;
  19. $dh=opendir($dirpath);