diff --git a/components/site/src/lib.rs b/components/site/src/lib.rs index e0bb63296..46c62c959 100644 --- a/components/site/src/lib.rs +++ b/components/site/src/lib.rs @@ -1046,7 +1046,9 @@ impl Site { None => return Ok(()), }; - for (feed, feed_filename) in feeds.into_iter().zip(self.config.languages[lang].feed_filenames.iter()) { + for (feed, feed_filename) in + feeds.into_iter().zip(self.config.languages[lang].feed_filenames.iter()) + { if let Some(base) = base_path { let mut components = Vec::new(); for component in base.components() { diff --git a/src/fs_utils.rs b/src/fs_utils.rs index 64f8f8641..8ea786797 100644 --- a/src/fs_utils.rs +++ b/src/fs_utils.rs @@ -82,6 +82,12 @@ pub fn filter_events( } let path = event.event.paths[0].clone(); + // Since we debounce things, some files might already not exist anymore by the + // time we get to them + if !path.exists() { + continue; + } + if is_ignored_file(ignored_content_globset, &path) { continue; }