Sha256: 0080fdd7197f7daffe02b63ae7fee6be2984ce23ad3ad07c5f7ce954e562d088
Contents?: true
Size: 379 Bytes
Versions: 16
Compression:
Stored size: 379 Bytes
Contents
require "zip" module Excavate module Extractors class ZipExtractor < Extractor def extract(target) Zip::File.open(@archive) do |zip_file| zip_file.each do |entry| path = File.join(target, entry.name) FileUtils.mkdir_p(File.dirname(path)) entry.extract(path) end end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems