PyDocs

Nav

File and Directory Access

WindowsPath

pathlib

class (source)
  • WindowsPath(*pathsegments)
Path subclass for Windows systems.

On a Windows system, instantiating a Path should return this object.
Changed in 3.13
  • 3.13: Raises UnsupportedOperation on non-Windows platforms. In previous versions, NotImplementedError was raised instead.
1 Example
>>> WindowsPath('c:/', 'Users', 'Ximénez')
WindowsPath('c:/Users/Ximénez')
from the Python docs
See Also
No see-alsos for pathlib/WindowsPath
0 Notes
No notes for WindowsPath