MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / realpath

Function realpath

tools/python-3.11.9-amd64/Lib/posixpath.py:412–417  ·  view source on GitHub ↗

Return the canonical path of the specified filename, eliminating any symbolic links encountered in the path.

(filename, *, strict=False)

Source from the content-addressed store, hash-verified

410# filesystem).
411
412def realpath(filename, *, strict=False):
413 """Return the canonical path of the specified filename, eliminating any
414symbolic links encountered in the path."""
415 filename = os.fspath(filename)
416 path, ok = _joinrealpath(filename[:0], filename, strict, {})
417 return abspath(path)
418
419# Join two paths, normalizing and eliminating any symbolic links
420# encountered in the second path.

Callers 1

ismountFunction · 0.70

Calls 2

_joinrealpathFunction · 0.85
abspathFunction · 0.70

Tested by

no test coverage detected