lib/playersdk/compilers/flex.rb in videojuicer-player-sdk-0.3.5 vs lib/playersdk/compilers/flex.rb in videojuicer-player-sdk-0.3.6

- old
+ new

@@ -84,11 +84,17 @@ def unzip(file, destination) Zip::ZipFile.open(file) { |zip_file| zip_file.each { |f| f_path = File.join(destination, f.name) + + if File.exist?(f_path) then + FileUtils.rm_rf f_path + end + FileUtils.mkdir_p(File.dirname(f_path)) - zip_file.extract(f, f_path) unless File.exist?(f_path) + + zip_file.extract(f, f_path) # unless File.exist?(f_path) } } end end end \ No newline at end of file