app/controllers/concerns/deposit_data.rb
# delete all files deposited in the AIP - this will be called to clean things up if there was a problem
#   during file upload
delete all files deposited in the AIP - this will be called to clean things up if there was a problem
during file upload
delete all files deposited in the AIP - this will be called to clean things up if there was a problem during file upload
def delete_deposited_files (dataset_id)
    deposit_upload_dir = File.join(@temp_upload_dir, dataset_id)
    if Dir.exists?(deposit_upload_dir)
      FileUtils.rm_rf(deposit_upload_dir)
    end
    if @dir_dataset
      FileUtils.rm_rf(@dir_dataset)
    end
  end
def delete_deposited_files ( dataset_id ) deposit_upload_dir = File . join ( @temp_upload_dir , dataset_id ) if Dir . exists? ( deposit_upload_dir ) FileUtils . rm_rf ( deposit_upload_dir ) end if @dir_dataset FileUtils . rm_rf ( @dir_dataset ) end end
delete all files deposited in the AIP - this will be called to clean things up if there was a problem
during file upload
delete all files deposited in the AIP - this will be called to clean things up if there was a problem during file upload
dataset_id
<not_specific>