Goodbye os.path: 15 Pathlib Tricks to Quickly Master The File System in Python
No headaches and unreadable code from os.path
Published in
7 min readApr 7, 2023
Pathlib may be my favorite library (after Sklearn, obviously). And given there are over 130 thousand libraries, that’s saying something. Pathlib helps me turn code like this written in os.path
:
import os
dir_path =…