4 ms·
There is already pathlib in Python's stdlib that do something similar: >>> p = PurePath('/etc') >>> p PurePosixPath('/etc') >>> p / 'init.d' / 'apache2' PurePo
by m45t3r 10y ago
There is already pathlib in Python's stdlib that do something similar:
>>> p = PurePath('/etc')
>>> p
PurePosixPath('/etc')
>>> p / 'init.d' / 'apache2'
PurePosixPath('/etc/init.d/apache2')
And yeah, this uses operator overload. However it does look quite nice.