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

Method isdir

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

Source from the content-addressed store, hash-verified

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

Callers 5

test_copy_dirMethod · 0.45
test_mkdirMethod · 0.45
is_dirMethod · 0.45

Calls 1

strFunction · 0.85

Tested by 4

test_copy_dirMethod · 0.36
test_mkdirMethod · 0.36