Watcher prototype » History » Revision 2
Revision 1 (Greg Burri, 06/26/2009 02:44 PM) → Revision 2/17 (Greg Burri, 06/26/2009 08:37 PM)
h1. Watcher prototype The cache file structure store all the hashes of the shared files. If a file is added or removed See FileIndexMonitor::updateCycle() in 'fimonitor.cc' from a shared directory (or a subfolder) it should be added or removed from the cache. As far as I know there is no way to watch changes recursively of a folder tree. The QT class _QFileSystemWatcher_ cannot watch recursively. The only way to synchronize is to periodically scan all the shared data and compare to the cached one. It can be a bit CPU consumer so it should be done with a low priority thread and maybe with a pause between each file hashing. Retroshare.