11 logger = logging.getLogger(os.path.basename(sys.argv[0]))
13 parser = argparse.ArgumentParser(
14 description='List contents of a manifest')
16 parser.add_argument('locator', type=str,
21 parser.add_argument('-s', action='store_true', help="""List file sizes, in KiB.""")
23 args = parser.parse_args()
27 cr = arvados.CollectionReader(arvados.Keep.get(args.locator))
29 for f in cr.all_files():
31 print "{:>10} {}".format((f.size() + 1023) / 1024,
32 f.stream_name() + "/" + f.name())
34 print f.stream_name() + "/" + f.name()