10 parser = argparse.ArgumentParser(
11 description='List contents of a manifest')
13 parser.add_argument('locator', type=str,
18 parser.add_argument('-s', action='store_true', help="""List file sizes, in KiB.""")
20 args = parser.parse_args()
24 cr = arvados.CollectionReader(args.locator)
26 for f in cr.all_files():
28 print "{:>10} {}".format((f.size() + 1023) / 1024,
29 f.stream_name() + "/" + f.name())
31 print f.stream_name() + "/" + f.name()