Originally filed by gustavosaume on 2009-06-12T22:13:46
What steps will reproduce the problem?
1. Watch a file with FileMonitor
2. Delete or Move the file
3. The FileMonitor performs a unwatch
4. Paste again the file in the watching url
What is the expected output? What do you see instead?
FileMonitor should dispatch a File Create event, but instead nothing happens
Please use labels and text to provide additional information.
This happens because in the unwatch function the timer is not set to null,
so when the watch method is called again it doesn't adds the timer's
listener because the timer is not null and doesn't enter in the if where
the timer listener is set....
it's easily solved just by setting the timer to null in the unwatch method
Updated by mikechambers on 2009-09-21T04:46:18
Original ticket set owner to mikechambers