PyDocs

Nav

File and Directory Access

PurePath.as_posix

pathlib

method of PurePath (source)
  • PurePath.as_posix()
Return the string representation of the path with forward (/)
slashes.
1 Example
>>> p = PureWindowsPath('c:\\windows')
>>> str(p)
'c:\\windows'
>>> p.as_posix()
'c:/windows'
from the Python docs
See Also
No see-alsos for pathlib/PurePath.as_posix
0 Notes
No notes for PurePath.as_posix