ID EN
Pathlib

Path

Python 3.11

A subclass of PurePath, this class represents concrete paths of the system’s path flavour (instantiating it creates either a PosixPath or a WindowsPath):

Syntax

PYTHON
class pathlib.Path(*pathsegments)

Examples

Example 1
PYTHON
>>> Path('setup.py')
PosixPath('setup.py')

See Also

PurePath PosixPath WindowsPath PurePath