See Python Pathlib Path Function Vs State Function