def list_files(directory):
    ret = set()
    ret.add(directory)
    for root, dirs, files in safe_walk(directory):
        for name in files:
            ret.add(os.path.join(root, name))
        for name in dirs:
            ret.add(os.path.join(root, name))

    return list(ret)
Return a list of all files found under directory
dataset/ETHPy150Open saltstack/salt/salt/utils/__init__.py/list_files