ID EN
Pathlib

WindowsPath

Python 3.11

A subclass of Path and PureWindowsPath, this class represents concrete Windows filesystem paths:

Syntax

PYTHON
class pathlib.WindowsPath(*pathsegments)

Examples

Example 1
PYTHON
>>> WindowsPath('c:/Program Files/')
WindowsPath('c:/Program Files')

See Also

Path PureWindowsPath PurePath