[2] ErrorException in common.php line 84

unlink(D:\LanduiYUN\dd35fhy6rsxbt7\wwwroot\caches\temp\/cb10cc532a5b7d1b1ed9b7ae44da841f.php): Permission denied

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

Exception Datas

Error Context
dirpath D:\LanduiYUN\dd35fhy6rsxbt7\wwwroot\caches\temp\
dh Resource
file cb10cc532a5b7d1b1ed9b7ae44da841f.php
fullpath D:\LanduiYUN\dd35fhy6rsxbt7\wwwroot\caches\temp\/cb10cc532a5b7d1b1ed9b7ae44da841f.php