Skip to content

Commit

Permalink
reworked bagit write files to not create empty bags (samvera#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkkwang authored Jun 13, 2022
1 parent 532c05d commit 4ba0377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/parsers/bulkrax/bagit_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ def write_files
require 'open-uri'
require 'socket'
importerexporter.entries.where(identifier: current_record_ids)[0..limit || total].each do |e|
bag = BagIt::Bag.new setup_bagit_folder(e.identifier)
w = ActiveFedora::Base.find(e.identifier)
next unless Hyrax.config.curation_concerns.include?(w.class)
bag = BagIt::Bag.new setup_bagit_folder(e.identifier)

w.file_sets.each do |fs|
file_name = filename(fs)
Expand Down

0 comments on commit 4ba0377

Please sign in to comment.