Anybody have an example on how to use this. Basically I want to periodically write a DirSnapshot to disk, so that when my process starts up, it can take another DirSnapshot, compare the 2, and only have to process files/dirs which were 'possibly' modified.Thanks
Hi,
The DirSnapshot/DirSnapshotDiff mechanism is only used with the polling observer. This observer is chosed only when no platform specific observer is found! So, you need to write you own watcher (main application) and use the polling.PollingObserver class.
Currently, the DirSnapshotDiff is not serializable. You need to develop your own serialization model.
The PollingObserver use a PollingEmitter which is a daemon thread. You can override the start and stop methods to trigger the DirSnapshotDiff serialization.
------- Laurent.