选择语言 :

 Core_Controller_File::action_create_dir

内部调用创建目录

null Core_Controller_File::action_create_dir( )
File: ./core/controllers-system/file.controller.php
public function action_create_dir()
{
    # 目录
    $dir = $this->arguments[0];

    if ( !isset(File::$dir[$dir]) )
    {
        # 目录不允许操作
        $this->show_error('目录不允许操作');
    }

    # 目录
    $the_dir = File::$dir[$dir].$this->arguments[1];

    if ( File::create_dir($the_dir,$this->arguments[2]) )
    {
        $this->show_success();
    }
    else
    {
        # 记录错误日志
        Core::log('create dir('.$the_dir.') error.','error');
        $this->show_error('执行失败');
    }
}