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

Method scandir

Lib/glob.py:531–536  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

529
530 @staticmethod
531 def scandir(path):
532 # We must close the scandir() object before proceeding to
533 # avoid exhausting file descriptors when globbing deep trees.
534 with os.scandir(path) as scandir_it:
535 entries = list(scandir_it)
536 return ((entry, entry.name, entry.path) for entry in entries)
537
538
539class _PathGlobber(_GlobberBase):

Callers

nothing calls this directly

Calls 2

listClass · 0.85
scandirMethod · 0.45

Tested by

no test coverage detected