From a5744b206cf1ca811f913d68cafc0178079be2f7 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Thu, 13 Dec 2012 20:23:23 +0000 Subject: Remove any download zip files when a request's cached files are expired. --- app/controllers/application_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/controllers/application_controller.rb') diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index d8f7f9ea7..b707ae878 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -234,6 +234,10 @@ class ApplicationController < ActionController::Base File.join(first_three_digits.to_s, info_request.id.to_s) end + def request_download_zip_dir(info_request) + File.join(download_zip_dir, "download", request_dirs(info_request)) + end + def download_zip_dir() File.join(Rails.root, '/cache/zips/') end -- cgit v1.2.3