def collection_files(uuid, config=None, add_uuid=False):
    """Retrieve files in the input collection.
    """
    import arvados
    api_client = _get_api_client(config)
    cr = arvados.CollectionReader(uuid, api_client=api_client)
    cr.normalize()
    out = ["%s/%s" % (x.stream_name(), x.name) for x in cr.all_files()]
    if add_uuid:
        out = ["keep:%s" % os.path.normpath(os.path.join(uuid, x)) for x in out]
    return out
dataset/ETHPy150Open chapmanb/bcbio-nextgen-vm/bcbiovm/arvados/retriever.py/collection_files/original