Sha256: 9ceea6b5c4ef155d8cfcb7d685f9a79fbe2bb51d95a99375867840500a9d4bba
Contents?: true
Size: 309 Bytes
Versions: 1
Compression:
Stored size: 309 Bytes
Contents
require 'zip/zip' module Downlow class Zip < Extractor handles(/\.zip$/) def extract ::Zip::ZipFile.foreach(path) do |file| path = destination + file.name path.dirname.mkpath file.extract(path) end @final_path = destination end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
downlow-0.1.0 | lib/downlow/extractors/zip.rb |