内部调用删除目录
null Core_Controller_File::action_remove_dir( )
public function action_remove_dir()
{
# 目录
$dir = $this->arguments[0];
if ( !isset(File::$dir[$dir]) )
{
# 目录不允许操作
$this->show_error('目录不允许操作');
}
if (!$this->arguments[1])
{
$this->show_error('缺少参数');
}
# 目录
$the_dir = File::$dir[$dir].$this->arguments[1];
if ( File::remove_dir($the_dir) )
{
$this->show_success();
}
else
{
# 记录错误日志
Core::log('remove dir('.$the_dir.') error.','error');
$this->show_error('执行失败');
}
}