We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 70946b8 + ba85ca3 commit 7dc9009Copy full SHA for 7dc9009
src/main.rs
@@ -101,7 +101,7 @@ fn watch(exercises: &[Exercise]) -> notify::Result<()> {
101
match rx.recv() {
102
Ok(event) => match event {
103
DebouncedEvent::Create(b) | DebouncedEvent::Chmod(b) | DebouncedEvent::Write(b) => {
104
- if b.extension() == Some(OsStr::new("rs")) {
+ if b.extension() == Some(OsStr::new("rs")) && b.exists() {
105
println!("----------**********----------\n");
106
let filepath = b.as_path().canonicalize().unwrap();
107
let exercise = exercises
0 commit comments