Ensure that zipfile.Path directory names are matched. zipfile.Path directory names always end in a slash.
(self, pattern)
| 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""" |