See Python Pathlib Documentation Center