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

Class _PathGlobber

Lib/glob.py:539–553  ·  view source on GitHub ↗

Provides shell-style pattern matching and globbing for pathlib paths.

Source from the content-addressed store, hash-verified

537
538
539class _PathGlobber(_GlobberBase):
540 """Provides shell-style pattern matching and globbing for pathlib paths.
541 """
542
543 @staticmethod
544 def lexists(path):
545 return path.info.exists(follow_symlinks=False)
546
547 @staticmethod
548 def scandir(path):
549 return ((child.info, child.name, child) for child in path.iterdir())
550
551 @staticmethod
552 def concat_path(path, text):
553 return path.with_segments(str(path) + text)

Callers 2

full_matchMethod · 0.90
globMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected