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

Method isfile

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

Source from the content-addressed store, hash-verified

78 return path_str in p.zip_file.NameToInfo
79
80 def isfile(self, p):
81 info = p.zip_file.NameToInfo.get(vfspath(p))
82 if info is None:
83 return False
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))

Callers 7

test_copy_fileMethod · 0.45
test_copy_file_emptyMethod · 0.45
test_copy_dirMethod · 0.45
test_copy_intoMethod · 0.45
is_fileMethod · 0.45

Calls 2

vfspathFunction · 0.90
getMethod · 0.45

Tested by 6

test_copy_fileMethod · 0.36
test_copy_file_emptyMethod · 0.36
test_copy_dirMethod · 0.36
test_copy_intoMethod · 0.36