def paths_from_folder(folder):
    """Generate paths from folder.

    Args:
        folder (str): Folder path.

    Returns:
        list[str]: Returned path list.
    """

    paths = list(scandir(folder))
    paths = [osp.join(folder, path) for path in paths]
    return paths
Generate paths from folder.

Args:
folder (str): Folder path.

Returns:
list[str]: Returned path list.
opensora/models/super_resolution/basicsr/data/data_util.py