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

Method islink

Lib/test/test_pathlib/support/zip_path.py:86–90  ·  view source on GitHub ↗
(self, p)

Source from the content-addressed store, hash-verified

84 return not stat.S_ISLNK(info.external_attr >> 16)
85
86 def islink(self, p):
87 info = p.zip_file.NameToInfo.get(vfspath(p))
88 if info is None:
89 return False
90 return stat.S_ISLNK(info.external_attr >> 16)
91
92
93class MissingZipPathInfo(PathInfo):

Callers 15

_walk_dirFunction · 0.80
compile_fileFunction · 0.80
_islinkFunction · 0.80
copymodeFunction · 0.80
copystatFunction · 0.80
moveFunction · 0.80
checkFunction · 0.80
compileFunction · 0.80
_dont_follow_symlinksFunction · 0.80
lookupmoduleMethod · 0.80
_follow_symlinksFunction · 0.80
list_directoryMethod · 0.80

Calls 2

vfspathFunction · 0.90
getMethod · 0.45