PyDocs

Nav

File and Directory Access

realpath

os.path

function (source)
  • realpath(path, /, *, strict=False)
Return the canonical path of the specified filename, eliminating any
symbolic links encountered in the path.
Changed in 3.6, 3.8, 3.10, 3.15
  • 3.6: Accepts a path-like object.
  • 3.8: Symbolic links and junctions are now resolved on Windows.
  • 3.10: The strict parameter was added.
  • 3.15: The ALL_BUT_LAST and ALLOW_MISSING values for the strict parameter was added.
0 Examples
No examples for os.path/realpath.
See Also
No see-alsos for os.path/realpath
0 Notes
No notes for realpath