Prevent An Infinite Loop When Copying Files Watched By notify In Rust

May 2024

TODO

    ☐

    Reference: https://github.com/notify-rs/notify/issues/259

    ☐

    Show solution with:

let data = std::fs::read(in_src)?;
std::fs::write(out_dst, &data)?;

TODO

    ☐

    Mention the problem was with your static site generator but also shows up in mdBook.

    ☐

    Mention that switching to kqueue from fsevent fixes the issue but can run into too many files issue

end of line