# File lib/www/mechanize/file_response.rb, line 26
      def content_length
        return dir_body.length if directory?
        ::File.exists?(@file_path) ? ::File.stat(@file_path).size : 0
      end