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

Method _from_dir_entry

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

Source from the content-addressed store, hash-verified

821 yield path_str
822
823 def _from_dir_entry(self, dir_entry, path_str):
824 path = self.with_segments(path_str)
825 path._str = path_str
826 path._info = DirEntryInfo(dir_entry)
827 return path
828
829 def iterdir(self):
830 """Yield path objects of the directory contents.

Callers 1

iterdirMethod · 0.95

Calls 2

DirEntryInfoClass · 0.90
with_segmentsMethod · 0.45

Tested by

no test coverage detected