I find the .Net FileSystemWatcher class really handy for writing utilities that automatically come to life when files show up in their watched folders. Is there any equivalent to this functionality in the *nix world that would allow me to watch a folder (and possibly all of its subdirectories)?
Edit: Preferably this will be something that doesn’t require kernel patches.
That would be Gamin the File Alteration Monitor or Inotify.
Edit: Mono does have Gamin bindings – in fact, its implementation of FileSystemWatcher uses Gamin. https://www.mono-project.com/docs/faq/technical/#what-are-the-issues-with-filesystemwatcher.