Returns list of new matches of - paths of files that were not present previously, or have different mtimes or have different contents.
(self)
| 3278 | self.glob_pattern = glob_pattern |
| 3279 | self.items0 = self._items() |
| 3280 | def get(self): |
| 3281 | ''' |
| 3282 | Returns list of new matches of <glob_pattern> - paths of files that |
| 3283 | were not present previously, or have different mtimes or have different |
| 3284 | contents. |
| 3285 | ''' |
| 3286 | ret = list() |
| 3287 | items = self._items() |
| 3288 | for path, id_ in items.items(): |
| 3289 | id0 = self.items0.get(path) |
| 3290 | if id0 != id_: |
| 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 |