How to quickly get if a directory was changed using C ++ without a thread or monitoring process?

This change includes adding or removing files in a directory or changing its subdirectories. Are there any window APIs that can get changes this way? I do not have a thread or process to monitor the file system.

+3
source share
2 answers

I would try CDirectoryChangeWatcher , it wraps the ReadDirectoryChangesW windows, so it is easier to use.

+1
source

Source: https://habr.com/ru/post/1709461/


All Articles