I would prefer those methods inside <code>app/helpers/file_helper.rb</code>.