# File lib/selenium/webdriver/common/zipper.rb, line 34 def zip(path) with_tmp_zip do |zip| ::Find.find(path) do |file| unless File.directory?(file) add_zip_entry zip, file, file.sub("#{path}/", '') end end zip.commit File.open(zip.name, "rb") { |io| Base64.strict_encode64 io.read } end end