# File lib/ole/storage/base.rb, line 919 def delete child, truncate=true # remove from our child array, so that on reflatten and re-creation of @dirents, it will be gone unless @children.delete(child) raise ArgumentError, "#{child.inspect} not a child of #{self.inspect}" end @name_lookup.delete(child.name) child.parent = nil # free our blocks child.open { |io| io.truncate 0 } if child.file? end