Update size and the mime type on every path change