module Bundler

def rm_rf(path)

def rm_rf(path)
  FileUtils.remove_entry_secure(path) if path && File.exist?(path)
rescue ArgumentError
  message = <<EOF
s a security vulnerability to allow your home directory to be world-writable, and bundler cannot continue.
should probably consider fixing this issue by running `chmod o-w ~` on *nix.
se refer to https://ruby-doc.org/stdlib-3.1.2/libdoc/fileutils/rdoc/FileUtils.html#method-c-remove_entry_secure for details.
  File.world_writable?(path) ? Bundler.ui.warn(message) : raise
  raise PathError, "Please fix the world-writable issue with your #{path} directory"
end