def list_files(path):

    # Walk directory getting all paths
    raw_results = []

    for root, dirs, files in os.walk(path):
        raw_results.extend([os.path.join(root, d) for d in dirs])
        raw_results.extend([os.path.join(root, f) for f in files])

    # Trim the prefix path from the results
    results = [os.path.relpath(r, path) for r in raw_results]

    # Return the sorted results
    return sorted(results)
Create a mountpoint root directory and unmount any filesystems with mount
dataset/ETHPy150Open jlisee/xpkg/python/xpkg/util.py/list_files--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/agents/testtools/_blockdevice.py/mountroot_for_test