public function setSavePath($savePath)
    {
        if (empty($savePath)) return $this;

        $this->savePath = $savePath;

        if (!is_dir($this->savePath)) {
            mkdir($this->savePath);
        }

        return $this;
    }
public function setSavePath($savePath)
    {
        if (empty($savePath)) return $this;

        $this->savePath = $savePath;

        if (!is_dir($this->savePath)) {
            mkdir($this->savePath);
        }

        return $this;
    }
public function setSavePath ( $ savePath ) { if ( empty ( $ savePath ) ) return $ this ; $ this -> savePath = $ savePath ; if ( ! is_dir ( $ this -> savePath ) ) { mkdir ( $ this -> savePath ) ; } return $ this ; }
Set save path

@param $savePath
@return $this
Set save path