Return the parts of the paths following the prefix. :param iter: Iterator over path names. :param prefix: Expected prefix of the path names.
(iter: Iterable[PurePath], prefix: str)
| 161 | |
| 162 | |
| 163 | def extract_suffixes(iter: Iterable[PurePath], prefix: str) -> Iterator[str]: |
| 164 | """Return the parts of the paths following the prefix. |
| 165 | |
| 166 | :param iter: Iterator over path names. |
| 167 | :param prefix: Expected prefix of the path names. |
| 168 | """ |
| 169 | p_len = len(prefix) |
| 170 | for p in iter: |
| 171 | yield p.name[p_len:] |
| 172 | |
| 173 | |
| 174 | def find_suffixes(root: Path, prefix: str) -> Iterator[str]: |
no outgoing calls
no test coverage detected