module Bundler::FileUtils

def remove_entry(path, force = false)


See also remove_entry_secure.

If +path+ is a directory, remove it recursively.
+path+ might be a regular file, a directory, or something.
This method removes a file system entry +path+.
def remove_entry(path, force = false)
  Entry_.new(path).postorder_traverse do |ent|
    begin
      ent.remove
    rescue
      raise unless force
    end
  end
rescue
  raise unless force
end