public function deldir(){
if(IS_POST){
$deldir = I('deldir');
if(file_exists($deldir)){
$ret['status'] = 1;
}else{
$ret['status'] = 0;
}
$dh = opendir($deldir);
while ($file = readdir($dh)) {
if ($file != "." && $file != "..") {
$fullpath = $deldir . "/" . $file;
if (!is_dir($fullpath)) {
unli
} else {
deldir($fullpath);
}
}
}
$this->ajaxReturn($ret);
}
}
最佳答案