unlink($fullpath);} else {dir_del($fullpath);@rmdir($fullpath);}}}closedir($dh);$isEmpty = true;$dh=opendir($dirpath);while (($file=readdir($dh))!== false) {if($file!="." && $file!="..") {$isEmpty = false;break;}}return $isEmpty;}
| dirpath | /www/wwwroot/cs.hirays.com/caches/cache//aa |
| dh | Resource |
| file | false |
| fullpath | /www/wwwroot/cs.hirays.com/caches/cache//aa/6c4ce6cbcb330f7a953e68e9424a83.php |
| isEmpty | true |