stat shouldn't return info-type or mime-type for directories, so now it
doesn't.