test emtry directory
This commit is contained in:
parent
bde4e0f4f7
commit
3081bff9f4
|
@ -25,7 +25,7 @@ class TestController < ApplicationController
|
|||
def ziping files_path
|
||||
folder = "#{Rails.root}/files"
|
||||
input_filename = files_path
|
||||
zipfile_name = "#{Rails.root}/tmp/archive_#{Time.now.to_i}.zip"
|
||||
zipfile_name = "#{Rails.root}/tmp/archiveZip/archive_#{Time.now.to_i}.zip"
|
||||
|
||||
Zip::File.open(zipfile_name, Zip::File::CREATE) do |zipfile|
|
||||
input_filename.each do |filename|
|
||||
|
|
Loading…
Reference in New Issue