From 3081bff9f44f5b572b2f51d00c812f915950e96e Mon Sep 17 00:00:00 2001 From: yanxd Date: Tue, 15 Apr 2014 14:42:00 +0800 Subject: [PATCH] test emtry directory --- app/controllers/test_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/test_controller.rb b/app/controllers/test_controller.rb index 79b2b5641..1f970b217 100644 --- a/app/controllers/test_controller.rb +++ b/app/controllers/test_controller.rb @@ -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|