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

Method isdir

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

Source from the content-addressed store, hash-verified

74 readlink = readtext
75
76 def isdir(self, p):
77 path_str = vfspath(p) + "/"
78 return path_str in p.zip_file.NameToInfo
79
80 def isfile(self, p):
81 info = p.zip_file.NameToInfo.get(vfspath(p))

Callers 6

test_copy_dirMethod · 0.45
test_mkdirMethod · 0.45
is_dirMethod · 0.45

Calls 1

vfspathFunction · 0.90