/** * 创建目录 * @param string $path 目录 * @return */ public function create_dir($path) { if (is_dir($path)) { return false; } fileInit::create_dir(dirname($path)); @mkdir($path); @chmod($path, 0777); return true; }