changeset 33:c404b570013b

More verbose 2.
author Catherine Wise <catherine.wise@csiro.au>
date Mon, 18 May 2015 16:03:47 +1000
parents 20c1d4fa4084
children 05ce187da48a
files TrustStoreGalaxyBrowse.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/TrustStoreGalaxyBrowse.py	Mon May 18 12:48:57 2015 +1000
+++ b/TrustStoreGalaxyBrowse.py	Mon May 18 16:03:47 2015 +1000
@@ -166,12 +166,12 @@
         with open(metadata_path, 'wb') as metadata_file:
             for path in paths:
                 locations = utils.Navigation.files_at_path(root, path)
+                if not locations or locations == []:
+                    print("Path not found: " + path)
+                    print("In root: " + str(root))
+                else:
+                    print("Downloading file..." + str(locations))
                 for location in locations:
-                    if not location:
-                        print("Path not found: " + path)
-                        continue
-                    else:
-                        print("Downloading file... " + location.name)
                     filename = "".join(c in SAFE_CHARS and c or '-' for c in location.name)
                     extension = os.path.splitext(filename)[1]
                     name = construct_multi_filename(hda_id, filename, extension)