lib/selenium/webdriver/common/zipper.rb in selenium-webdriver-2.5.0 vs lib/selenium/webdriver/common/zipper.rb in selenium-webdriver-2.6.0
- old
+ new
@@ -33,10 +33,12 @@
zip_path = File.join(tmp_dir, "webdriver-zip")
Zip::ZipFile.open(zip_path, Zip::ZipFile::CREATE) { |zip|
::Find.find(path) do |file|
next if File.directory?(file)
- entry = file.sub("#{path}/", '')
+
+ entry = Zip::ZipEntry.new(zip_path, file.sub("#{path}/", ''))
+ entry.follow_symlinks = true
zip.add entry, file
end
}