Update support for events.

Might be better to preallocate capacity here for very large directories