Alternative to find_changed() given explicit changes. This only calls self.fs.stat() on added or updated files, not on all files. It believes all other files are unchanged! Implies add_watched_paths() for add and update, and remove_watched_paths() for remove.
(self, remove: list[str], update: list[str])
| 93 | return self._find_changed(self._paths) |
| 94 | |
| 95 | def update_changed(self, remove: list[str], update: list[str]) -> AbstractSet[str]: |
| 96 | """Alternative to find_changed() given explicit changes. |
| 97 | |
| 98 | This only calls self.fs.stat() on added or updated files, not |
| 99 | on all files. It believes all other files are unchanged! |
| 100 | |
| 101 | Implies add_watched_paths() for add and update, and |
| 102 | remove_watched_paths() for remove. |
| 103 | """ |
| 104 | self.remove_watched_paths(remove) |
| 105 | self.add_watched_paths(update) |
| 106 | return self._find_changed(update) |
nothing calls this directly
no test coverage detected