Mercurial > repos > cathywise > truststore_browse_testing
comparison TrustStoreGalaxyBrowse.py @ 33:c404b570013b
More verbose 2.
| author | Catherine Wise <catherine.wise@csiro.au> |
|---|---|
| date | Mon, 18 May 2015 16:03:47 +1000 |
| parents | 20c1d4fa4084 |
| children | d25b82c3276f |
comparison
equal
deleted
inserted
replaced
| 32:20c1d4fa4084 | 33:c404b570013b |
|---|---|
| 164 | 164 |
| 165 if root is not None: | 165 if root is not None: |
| 166 with open(metadata_path, 'wb') as metadata_file: | 166 with open(metadata_path, 'wb') as metadata_file: |
| 167 for path in paths: | 167 for path in paths: |
| 168 locations = utils.Navigation.files_at_path(root, path) | 168 locations = utils.Navigation.files_at_path(root, path) |
| 169 if not locations or locations == []: | |
| 170 print("Path not found: " + path) | |
| 171 print("In root: " + str(root)) | |
| 172 else: | |
| 173 print("Downloading file..." + str(locations)) | |
| 169 for location in locations: | 174 for location in locations: |
| 170 if not location: | |
| 171 print("Path not found: " + path) | |
| 172 continue | |
| 173 else: | |
| 174 print("Downloading file... " + location.name) | |
| 175 filename = "".join(c in SAFE_CHARS and c or '-' for c in location.name) | 175 filename = "".join(c in SAFE_CHARS and c or '-' for c in location.name) |
| 176 extension = os.path.splitext(filename)[1] | 176 extension = os.path.splitext(filename)[1] |
| 177 name = construct_multi_filename(hda_id, filename, extension) | 177 name = construct_multi_filename(hda_id, filename, extension) |
| 178 target_output_filename = None | 178 target_output_filename = None |
| 179 if first: | 179 if first: |
