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

Method is_symlink

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

Source from the content-addressed store, hash-verified

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

Callers 15

existsMethod · 0.95
is_dirMethod · 0.95
is_fileMethod · 0.95
check_entryMethod · 0.45
test_removed_dirMethod · 0.45
test_removed_fileMethod · 0.45
test_broken_symlinkMethod · 0.45
test_fdMethod · 0.45
test_info_is_symlinkMethod · 0.45

Calls 2

S_IFMTFunction · 0.90
S_ISLNKFunction · 0.90