MCPcopy Index your code
hub / github.com/python/cpython / is_symlink

Method is_symlink

Lib/test/test_pathlib/support/local_path.py:130–134  ·  view source on GitHub ↗

Whether this path is a symbolic link.

(self)

Source from the content-addressed store, hash-verified

128 return self._is_file
129
130 def is_symlink(self):
131 """Whether this path is a symbolic link."""
132 if self._is_symlink is None:
133 self._is_symlink = os.path.islink(self._path)
134 return self._is_symlink
135
136
137class ReadableLocalPath(_ReadablePath, LexicalPath):

Callers 3

existsMethod · 0.95
is_dirMethod · 0.95
is_fileMethod · 0.95

Calls 1

islinkMethod · 0.80

Tested by

no test coverage detected