acken/FSWatcher — pull request #1 by slashdotdash (2012-04-22 17:19:34+00:00)
Title: Missed file change notification when zero (0 byte) length files are modified

I've made a small patch to FSWatcher's File class to calculate the File Hash value immediately on creation to workaround issue with missed change notification when a zero (0 byte) length file is modified.

Steps to reproduce are.

1. Create a new empty file in the target directory
2. Start the FSWatcher.Console
3. Modify the file and save it and the change will not be shown until the next time the file is saved.

Let me know if you can foresee any problems with the change I made for calculating the file's hash immediately rather than on comparison within the cache.

Cheers,
Ben