vendor/gems/rubyzip-0.9.1/lib/download_quizzes.rb
#
# Unzip the file using rubyzip library.
#

Unzip the file using rubyzip library.
Unzip the file using rubyzip library .
def unzip(x)
  outdir = x.sub(/.*\//, '')
  outdir = '.' if outdir == ""
  Zip::ZipFile::open(x) { |zf|
    zf.each { |e|
      fpath = File.join(outdir, e.name)
      FileUtils.mkdir_p(File.dirname(fpath))
      zf.extract(e, fpath)
    }
  }
end
def unzip ( x ) outdir = x . sub ( / .* \/ / , '' ) outdir = '.' if outdir == "" Zip :: ZipFile :: open ( x ) { | zf | zf . each { | e | fpath = File . join ( outdir , e . name ) FileUtils . mkdir_p ( File . dirname ( fpath ) ) zf . extract ( e , fpath ) } } end
Unzip the file using rubyzip library.
Unzip the file using rubyzip library .
x
<not_specific>