Skip to content
Snippets Groups Projects
Commit c2a971f1 authored by Anusha Ranganathan's avatar Anusha Ranganathan
Browse files

Merge branch 'bug_fix/396-delete-download-folder-after-zip-file-created' into 'develop'

Delete download folder after zip file is created

Closes FDM/rdm-system/antleaf-projectmanagement#396

See merge request !306
parents dfc55c27 724c5027
Branches
Tags
1 merge request!306Delete download folder after zip file is created
Pipeline #14551 canceled
......@@ -87,6 +87,8 @@ class DownloadAllController < Hyrax::DownloadsController
# Zip the content
zf = ZipFileGenerator.new(base_download_dir, zip_file_path)
zf.write
cleanup_path(base_download_dir) if Dir.exists?(base_download_dir) and File.exist?(zip_file_path)
end
def file_name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment