(self, event)
| 1121 | self._schedule(event.src_path) |
| 1122 | |
| 1123 | def on_deleted(self, event): |
| 1124 | if event.is_directory: |
| 1125 | return |
| 1126 | # Only handle files we would normally track |
| 1127 | try: |
| 1128 | rel = str(Path(event.src_path).relative_to(repo_root)) |
| 1129 | except ValueError: |
| 1130 | return |
| 1131 | if _should_ignore(rel, ignore_patterns): |
| 1132 | return |
| 1133 | try: |
| 1134 | store.remove_file_data(event.src_path) |
| 1135 | store.commit() |
| 1136 | logger.info("Removed: %s", rel) |
| 1137 | except Exception as e: |
| 1138 | logger.error("Error removing %s: %s", rel, e) |
| 1139 | |
| 1140 | def _schedule(self, abs_path: str): |
| 1141 | """Add file to pending set and reset the debounce timer.""" |
nothing calls this directly
no test coverage detected