Update file.rb

This should probably live with the other validations