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

Method iterdir

Lib/test/test_pathlib/support/zip_path.py:275–281  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

273 return self.zip_file.open(info.zip_info)
274
275 def iterdir(self):
276 info = self.info.resolve()
277 if not info.exists():
278 raise FileNotFoundError(errno.ENOENT, "File not found", self)
279 elif not info.is_dir():
280 raise NotADirectoryError(errno.ENOTDIR, "Not a directory", self)
281 return (self / name for name in info.children)
282
283 def readlink(self):
284 info = self.info

Callers 15

test_iterdirMethod · 0.45
test_spec_path_iterMethod · 0.45
test_child_path_iterMethod · 0.45
test_orphan_path_iterMethod · 0.45
namesFunction · 0.45
test_contentsMethod · 0.45
test_custom_loaderMethod · 0.45
test_iterdirMethod · 0.45
test_iterdir_infoMethod · 0.45

Calls 3

resolveMethod · 0.45
existsMethod · 0.45
is_dirMethod · 0.45

Tested by 15

test_iterdirMethod · 0.36
test_spec_path_iterMethod · 0.36
test_child_path_iterMethod · 0.36
test_orphan_path_iterMethod · 0.36
namesFunction · 0.36
test_contentsMethod · 0.36
test_custom_loaderMethod · 0.36
test_iterdirMethod · 0.36
test_iterdir_infoMethod · 0.36