emit a file event