Returns new files matching , asserting that there are exactly .
(self, n)
| 3291 | ret.append(path) |
| 3292 | return ret |
| 3293 | def get_n(self, n): |
| 3294 | ''' |
| 3295 | Returns new files matching <glob_pattern>, asserting that there are |
| 3296 | exactly <n>. |
| 3297 | ''' |
| 3298 | ret = self.get() |
| 3299 | assert len(ret) == n, f'{len(ret)=}: {ret}' |
| 3300 | return ret |
| 3301 | def get_one(self): |
| 3302 | ''' |
| 3303 | Returns new match of <glob_pattern>, asserting that there is exactly |