# File lib/ole/storage/file_system.rb, line 226 def unlink(*paths) paths.each do |path| dirent = @ole.dirent_from_path path # i think we should free all of our blocks from the # allocation table. # i think if you run repack, all free blocks should get zeroed, # but currently the original data is there unmodified. open(path) { |f| f.truncate 0 } # remove ourself from our parent, so we won't be part of the dir # tree at save time. parent_path, basename = File.split expand_path(path) parent = @ole.dir.send :dirent_from_path, parent_path, path parent.children.delete dirent end paths.length # hmmm. as per ::File ? end