Closed
Description
Not sure if I read that correctly.
The parameter "path" is used for
- constructing the url
url = ('%s%s' % (self.base_url, api_path)) + '?api=%s&version=%s&method=download&path=%s&mode=%s&_sid=%s' % ( api_name, info['maxVersion'], parse.quote_plus(path), mode, self._sid)
- passing as the writing path of the download response.
with session.get(url, stream=True) as r: r.raise_for_status() with open(os.path.basename(path), 'wb') as f:
These 2 would not be the same in most cases.
The function should take 2 separate parameters.
Metadata
Metadata
Assignees
Labels
Projects
Status
Done