from pathlib import Path
from typing import List


def txt_of_paths_to_list(path: Path) -> List[Path]:
    """Reads a .txt file with a path per row and returns a list of paths"""
    content: List = []
    with open(path, "r") as f:
        while line := f.readline().rstrip():
            content.append(Path(line))
    return content