Is there a way we can monitor files in a specific directory in UNIX using C Programming Language?
What I want is, when a file (file1.txt) in a directory (example A directory) is moved to different directory (B directory) my C program will log it in a file. The program will add a line on a log file like:
"file1.txt is moved to B directory" ...
Is this possible in C? How? Or do you have any other recommendations?
Thanks a lot.