Add isDir argument to the relevant events.

If an event is on a directory is already detected, this exposes that knowledge to the outside.