Monitor a directory for file changes.
Monitor a directory for file changes.
Is it possible to check a directory and the sub-directories inside it on the system to check if a new file is created/added or if a file is deleted from that directory and all the sub-directories, and get the path to that file that is added or removed?
Re: Monitor a directory for file changes.
https://docs.wxwidgets.org/trunk/classw ... tcher.html
You can see it in action with fswatcher sample.
You can see it in action with fswatcher sample.
Re: Monitor a directory for file changes.
Nice, this looks exactly like, what I was looking for. BTW, looking at the source, it seems like this needs to be created in the wxApp class, as it needs to be in the application loop?PB wrote: ↑Sun Mar 28, 2021 9:13 pm https://docs.wxwidgets.org/trunk/classw ... tcher.html
You can see it in action with fswatcher sample.
Re: Monitor a directory for file changes.
I think you misunderstood the docs. It just needs the event loop running, which means it cannot be used in a console application without one. But there are no special requirements otherwise.