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

Method _from_dir_entry

Lib/pathlib/__init__.py:1021–1025  ·  view source on GitHub ↗
(self, dir_entry, path_str)

Source from the content-addressed store, hash-verified

1019 yield path_str
1020
1021 def _from_dir_entry(self, dir_entry, path_str):
1022 path = self.with_segments(path_str)
1023 path._str = path_str
1024 path._info = _Info(dir_entry.path, dir_entry)
1025 return path
1026
1027 def iterdir(self):
1028 """Yield path objects of the directory contents.

Callers 1

iterdirMethod · 0.95

Calls 2

_InfoClass · 0.70
with_segmentsMethod · 0.45

Tested by

no test coverage detected