Rewrite of checkFileCodecs