def get_path_list(directory):
    paths = []
    if (not os.path.exists(directory)):
        raise FileNotFoundError('No such directory: {}'.format(directory))
    for (root, dirs, files) in os.walk(directory):
        for file in files:
            paths.append(os.path.join(root, file))
    return paths
def get_path_list(directory):
    paths = []
    if (not os.path.exists(directory)):
        raise FileNotFoundError('No such directory: {}'.format(directory))
    for (root, dirs, files) in os.walk(directory):
        for file in files:
            paths.append(os.path.join(root, file))
    return paths