Class: BagIt::Bag
- Inherits:
-
Object
- Object
- BagIt::Bag
- Defined in:
- lib/dpn/bagit/ext/bagit/bag.rb
Overview
Represents the state of a bag on a filesystem
Instance Method Summary collapse
-
#bag_files ⇒ Object
Return the paths to each bag file relative to bag_dir.
Instance Method Details
#bag_files ⇒ Object
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 |