module Bundler::FileUtils
def remove_entry(path, force = false)
Related: Bundler::FileUtils.remove_entry_secure.
raised exceptions of StandardError and its descendants.
Optional argument +force+ specifies whether to ignore
should be {interpretable as a path}[rdoc-ref:FileUtils@Path+Arguments].
Argument +path+
or a directory.
which should be the entry for a regular file, a symbolic link,
Removes the entry given by +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