Ensure only file events are acted upon