PyDocs

Nav

File and Directory Access

PosixPath

pathlib

class (source)
  • PosixPath(*pathsegments)
Path subclass for non-Windows systems.

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