MCPcopy Index your code
hub / github.com/RustPython/RustPython / is_symlink

Method is_symlink

Lib/pathlib/_os.py:476–481  ·  view source on GitHub ↗

Whether this path is a symbolic link.

(self)

Source from the content-addressed store, hash-verified

474 return S_ISREG(st.st_mode)
475
476 def is_symlink(self):
477 """Whether this path is a symbolic link."""
478 st = self._stat(follow_symlinks=False, ignore_errors=True)
479 if st is None:
480 return False
481 return S_ISLNK(st.st_mode)
482
483
484PathInfo = _WindowsPathInfo if os.name == 'nt' else _PosixPathInfo

Callers

nothing calls this directly

Calls 2

S_ISLNKFunction · 0.90
_statMethod · 0.45

Tested by

no test coverage detected