lib/rbbt/util/tar.rb in rbbt-util-5.21.97 vs lib/rbbt/util/tar.rb in rbbt-util-5.21.98
- old
+ new
@@ -91,25 +91,9 @@
# untars the given IO into the specified
# directory
def self.untar(io, destination)
return _untar_cmd(io, destination)
-
- #Gem::Package::TarReader.new io do |tar|
- # tar.each do |tarfile|
- # destination_file = File.join destination, tarfile.full_name
-
- # if tarfile.directory?
- # FileUtils.mkdir_p destination_file
- # else
- # destination_directory = File.dirname(destination_file)
- # FileUtils.mkdir_p destination_directory unless File.directory?(destination_directory)
- # File.open destination_file, "wb" do |f|
- # f.print tarfile.read
- # end
- # end
- # end
- #end
end
end
### Usage Example: ###