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

Method is_symlink

Lib/test/test_pathlib/support/zip_path.py:155–161  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

153 return not self.zip_info.filename.endswith('/')
154
155 def is_symlink(self):
156 if self.zip_info is None:
157 return False
158 elif fmt := S_IFMT(self.zip_info.external_attr >> 16):
159 return S_ISLNK(fmt)
160 else:
161 return False
162
163 def resolve(self, path=None, create=False, follow_symlinks=True):
164 """

Calls 2

S_IFMTFunction · 0.90
S_ISLNKFunction · 0.90