Method: BagIt::Manifest#delete_tag_file

Defined in:
lib/bagit/manifest.rb

#delete_tag_file(path) ⇒ Object



157
158
159
160
161
162
# File 'lib/bagit/manifest.rb', line 157

def delete_tag_file(path)
  filepath = File.join(@bag_dir, path)
  raise "Tag file does not exist: #{path}" unless File.exist? filepath
  remove_tag_file(path) if tag_files.include?(path)
  FileUtils.rm filepath
end