2019独角兽企业重金招聘Python工程师标准>>>
/*** 创建目录* @param type $path* @param type $mode* @return type */public function rmkdir($path, $mode = 0777) {return is_dir($path) || ( $this->rmkdir(dirname($path), $mode) && $this->_mkdir($path, $mode) );}/*** 创建目录* @param type $path* @param type $mode* @return type */public function _mkdir($path, $mode = 0777) {$old = umask(0);$res = @mkdir($path, $mode);umask($old);return $res;}