(&self)
| 184 | } |
| 185 | |
| 186 | pub fn stop(&self) { |
| 187 | self.watched_paths.clear(); |
| 188 | *self.watcher.write() = None; |
| 189 | info!("Stopped all file watchers"); |
| 190 | } |
| 191 | |
| 192 | pub fn watched_paths(&self) -> Vec<PathBuf> { |
| 193 | self.watched_paths.iter().map(|p| p.clone()).collect() |