内部调用移动目录
null Core_Controller_File::action_move_dir( )
public function action_move_dir()
{
# 目录
$from_dir = $this->arguments[0];
$to_dir = $this->arguments[2];
if ( !isset(File::$dir[$from_dir]) )
{
# 目录不允许操作
$this->show_error('目录不允许操作');
}
if ( !isset(File::$dir[$to_dir]) )
{
# 目录不允许操作
$this->show_error('目录不允许操作');
}
# 目录
$the_from_dir = File::$dir[$from_dir].$this->arguments[1];
$the_to_dir = File::$dir[$to_dir] .$this->arguments[3];
if ( File::move_dir($the_from_dir,$the_to_dir,$this->arguments[4]) )
{
$this->show_success();
}
else
{
# 记录错误日志
Core::log('move dir('.$from_dir.')to dir('.$to_dir.') error.','error');
$this->show_error('执行失败');
}
}