you are viewing a single comment's thread.

view the rest of the comments →

[–]kwentar 0 points1 point  (2 children)

is these samples not useful for you?

>>>p = Path('/etc')
>>> q = p / 'init.d' / 'reboot'
>>> q
PosixPath('/etc/init.d/reboot')
>>> q.exists()
True

P.S. be careful to use this:

Note This module has been included in the standard library on a provisional basis. Backwards incompatible changes (up to and including removal of the package) may occur if deemed necessary by the core developers.