Added "afterCreateCollection" event when creating a directory