Sha256: e3ed7462278514e0a784b11a9a7b889719f635f093fa1509d05819388d43262b
Contents?: true
Size: 335 Bytes
Versions: 4
Compression:
Stored size: 335 Bytes
Contents
module Downlow class Dir < Extractor handles(/.*$/) def extract if path.directory? self.destination = destination + path.basename destination.dirname.mkpath else destination.dirname.mkpath end path.cp destination @final_path = destination end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
downlow-0.1.3 | lib/downlow/extractors/dir.rb |
downlow-0.1.2 | lib/downlow/extractors/dir.rb |
downlow-0.1.1 | lib/downlow/extractors/dir.rb |
downlow-0.1.0 | lib/downlow/extractors/dir.rb |