class pathlib.Path(*pathsegments)
A subclass of PurePath
, this class represents concrete paths of the system’s path flavour (instantiating it creates either a PosixPath
or a WindowsPath
):
1 2 | >>> Path( 'setup.py' ) PosixPath( 'setup.py' ) |
pathsegments is specified similarly to PurePath
.
Please login to continue.