# HG changeset patch # User Catherine Wise # Date 1431929027 -36000 # Node ID c404b570013ba7f63e492c83304b4289587d11b1 # Parent 20c1d4fa4084db32f1a9445d3f1c9d0ab257ecce More verbose 2. diff -r 20c1d4fa4084 -r c404b570013b TrustStoreGalaxyBrowse.py --- 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)