src/Upload.php
public function path($path)
    {
        $this->path = "/" . $path;
        if (!is_dir($_SERVER['DOCUMENT_ROOT'] . $this->path)) {
            mkdir($_SERVER['DOCUMENT_ROOT'] . $this->path);
        }
    }
public function path($path)
    {
        $this->path = "/" . $path;
        if (!is_dir($_SERVER['DOCUMENT_ROOT'] . $this->path)) {
            mkdir($_SERVER['DOCUMENT_ROOT'] . $this->path);
        }
    }
/*保存路径