Class: BagIt::Bag

Inherits:
Object
  • Object
show all
Defined in:
lib/dpn/bagit/ext/bagit/bag.rb

Overview

Represents the state of a bag on a filesystem

Instance Method Summary collapse

Instance Method Details

#bag_filesObject

Return the paths to each bag file relative to bag_dir



14
15
16
# File 'lib/dpn/bagit/ext/bagit/bag.rb', line 14

def bag_files
  Dir.glob(File.join(data_dir,'**','*'), File::FNM_DOTMATCH).select { |f| File.file? f}
end