Re: Best use of QFileSystemWatcher for a custom directory tree
I've read (somewhere) that using QFileSystemWatcher can miss file system changes for a wide array of reasons. From what I recall, the best practice is (if critical that you catch all changes) to use QFileSystemWatcher but also scan the filesystem on a regular interval to ensure you find any changes you may have missed.
QFileSystemWatcher uses the underlying OS's file system notification API's and there are any number of reasons why an app may not be informed of changes, etc. Don't want to scare you off, but just wanted you to be aware of the potential pitfalls, etc.
I write the best type of code possible, code that I want to write, not code that someone tells me to write!
Bookmarks