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