Skip to content

Commit

Permalink
Merge pull request #26 from jservidio/fix_path_separator
Browse files Browse the repository at this point in the history
Convert Windows file path separator
  • Loading branch information
jmkho-spirent authored May 10, 2023
2 parents 3263bb8 + 2934a83 commit f6eaea9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
def main():
setup(
name='stcrestclient',
version= '1.9.0',
version= '1.9.1',
author='Spirent',
author_email='[email protected]',
url='https://github.com/Spirent/py-stcrestclient',
Expand Down
1 change: 1 addition & 0 deletions stcrestclient/resthttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ def download_file(self, container, resource, save_path=None, accept=None,
explicitly, requests do not time out.
"""
resource = resource.replace("\\", "/")
url = self.make_url(container, resource)
if not save_path:
save_path = resource.split('/')[-1]
Expand Down

0 comments on commit f6eaea9

Please sign in to comment.