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

Method match_dirs

Lib/zipfile/_path/glob.py:43–49  ·  view source on GitHub ↗

Ensure that zipfile.Path directory names are matched. zipfile.Path directory names always end in a slash.

(self, pattern)

Source from the content-addressed store, hash-verified

41 return rf'(?s:{pattern})\z'
42
43 def match_dirs(self, pattern):
44 """
45 Ensure that zipfile.Path directory names are matched.
46
47 zipfile.Path directory names always end in a slash.
48 """
49 return rf'{pattern}[/]?'
50
51 def translate_core(self, pattern):
52 r"""

Callers 1

translateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected