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

Method is_symlink

Lib/pathlib/_os.py:441–447  ·  view source on GitHub ↗

Whether this path is a symbolic link.

(self)

Source from the content-addressed store, hash-verified

439 return False
440
441 def is_symlink(self):
442 """Whether this path is a symbolic link."""
443 try:
444 return self._is_symlink
445 except AttributeError:
446 self._is_symlink = os.path.islink(self._path)
447 return self._is_symlink
448
449
450class _PosixPathInfo(_PathInfoBase):

Callers 3

existsMethod · 0.95
is_dirMethod · 0.95
is_fileMethod · 0.95

Calls 1

islinkMethod · 0.80

Tested by

no test coverage detected