Dummy File Watcher in C
In this article we will build a dummy file watcher using C programming language. We say dummy file watcher because to build a proper file watcher, we need to utilize os internal features which is a bit more complex. Instead, we will create an infinite loop that checks a given directory every 0.5 second and see if something has changed. First thing we need to do is to create a function that tells if something has changed in a given directory. ...