[2] ErrorException in common.php line 123

unlink(D:\wwwroot\zrlfhcom\wwwroot\caches\temp\/e21fe9d41f11fd93b96cbf2ab2a693be.php): Resource temporarily unavailable

  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);