C ++ program to view the change directory

I am looking for a way to make a program in C or C ++ that detects whether any files have been changed, renamed, moved, or deleted in the specified directory for Linux systems. Is there any way to do this?

+6
c ++ c linux directory
source share
4 answers

You want inotify (and its man page .)

+6
source share

Look inotify , I think it is still relevant.

You can also use wrapper APIs like glib GIO GFileMonitor .

+4
source share

Program against FAM . On current Linux systems, this service is provided by gamin or a similar application.

+3
source share

You can also use Qt and its QFileSystemWatcher class, which can be used quite easily.

+2
source share

All Articles