X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a77093bdb8cbbba6860bdda67da4d19ad3ac5a0c..0e4de53ab1c26a83a5f542d52935358497959c3e:/sdk/python/bin/arv-get diff --git a/sdk/python/bin/arv-get b/sdk/python/bin/arv-get index 0059f3faef..2451416dae 100755 --- a/sdk/python/bin/arv-get +++ b/sdk/python/bin/arv-get @@ -143,6 +143,8 @@ if not get_prefix: abort("failed to download '{}': {}".format(collection, error)) sys.exit(0) +reader.normalize() + # Scan the collection. Make an array of (stream, file, local # destination filename) tuples, and add up total size to extract. todo = [] @@ -214,7 +216,7 @@ for s,f,outfilename in todo: sys.stderr.write("%s %s/%s\n" % (digestor.hexdigest(), s.name(), f.name())) except KeyboardInterrupt: - if outfile and outfile != '/dev/stdout': + if outfile and outfilename != '/dev/stdout': os.unlink(outfilename) break