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

Method iterdir

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

Source from the content-addressed store, hash-verified

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