Python to read

Python path / pathlib

The python3 way to work with paths seems to be pathlib — Object-oriented filesystem paths — Python 3.9.2 documentation, not the old os.path.*

Split is Path (close to really-existing things), and PurePath - abstract paths, without connection to any real filesystem.