Skip to content

Commit

Permalink
Version 1.3.0. Fixes problem with destination path using /, instead o…
Browse files Browse the repository at this point in the history
…f os.path.join().
  • Loading branch information
victor73 committed Feb 27, 2019
1 parent 6b6238f commit 7ce225e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions lib/manifest_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@ def _get_fasp_obj(self, url, file_name):
result = None

try:
aspera.download_file(server, self.username, self.password,
success = aspera.download_file(server, self.username, self.password,
remote_path, file_name)

if not success:
self.logger.error("Aspera transfer failed.")
result = "error"
except Exception as e:
self.logger.error(e)
result = "error"
Expand Down Expand Up @@ -174,7 +178,8 @@ def download_manifest(self, manifest, destination, priorities):
failed_files.append(1)
continue

file_name = "{0}/{1}".format(destination, url_list[0].split('/')[-1])
url_file_element = url_list[0].split('/')[-1]
file_name = os.path.join(destination, url_file_element)

# only need to download if the file is not present
if os.path.exists(file_name):
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ def read(fname):
setup(name='portal-client',
description='Download client tool for IGS Portal servers.',
long_description=read('DESC'),
version='1.0',
version='1.3.0',
py_modules=['portal_client'],
author='Victor Felix',
author='Victor F',
author_email='[email protected]',
license='MIT',
install_requires=[
Expand Down

0 comments on commit 7ce225e

Please sign in to comment.