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

Class _PathGlobber

Lib/pathlib/types.py:64–80  ·  view source on GitHub ↗

Provides shell-style pattern matching and globbing for ReadablePath.

Source from the content-addressed store, hash-verified

62
63
64class _PathGlobber(_GlobberBase):
65 """Provides shell-style pattern matching and globbing for ReadablePath.
66 """
67
68 @staticmethod
69 def lexists(path):
70 return path.info.exists(follow_symlinks=False)
71
72 @staticmethod
73 def scandir(path):
74 return ((child.info, child.name, child) for child in path.iterdir())
75
76 @staticmethod
77 def concat_path(path, text):
78 return path.with_segments(vfspath(path) + text)
79
80 stringify_path = staticmethod(vfspath)
81
82
83class _JoinablePath(ABC):

Callers 2

full_matchMethod · 0.85
globMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…