PyDocs

Nav

Generic Operating System Services

fspath

os

function · Added in 3.6
  • fspath(path)
Return the file system path representation of the object.

If the object is str or bytes, then allow it to pass through as-is.  If
the object defines __fspath__(), then return the result of that method.
All other types raise a TypeError.
0 Examples
No examples for os/fspath.
See Also
No see-alsos for os/fspath
0 Notes
No notes for fspath