lib/bagit/valid.rb in bagit-0.4.6 vs lib/bagit/valid.rb in bagit-0.5.0

- old
+ new

@@ -31,10 +31,14 @@ errors.add :completeness, "#{file} is present but not manifested" end empty_manifests.each do |file| logger.error("#{file} is manifested but not present".red) - errors.add :completeness, "#{file} is manifested but not present" + error_message = "#{file} is manifested but not present" + if !detect_hidden && file.start_with?(File.join("data", ".")) + error_message += "; consider turning on hidden file detection" + end + errors.add :completeness, error_message end tag_empty_manifests.each do |file| logger.error("#{file} is a manifested tag but not present".red) errors.add :completeness, "#{file} is a manifested tag but not present" end