Use pathlib
As pathlib.Path.__init__ accepts both a string and Path-like objects we can stay backward compatible and still accept strings. Also Two functions are deprecated since they don't provide much readability over the pathlib implementation.
Showing
Please
register
or
sign in
to comment