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

Method is_symlink

Lib/zipfile/_path/__init__.py:413–419  ·  view source on GitHub ↗

Return whether this path is a symlink.

(self)

Source from the content-addressed store, hash-verified

411 return pathlib.PurePosixPath(self.at).match(path_pattern)
412
413 def is_symlink(self):
414 """
415 Return whether this path is a symlink.
416 """
417 info = self.root.getinfo(self.at)
418 mode = info.external_attr >> 16
419 return stat.S_ISLNK(mode)
420
421 def glob(self, pattern):
422 if not pattern:

Callers

nothing calls this directly

Calls 1

getinfoMethod · 0.45

Tested by

no test coverage detected