class KPM::Uninstaller

def validate_dir_for_rmrf(dir)

def validate_dir_for_rmrf(dir)
  raise ArgumentError, "Path #{dir} is not a valid directory" unless File.directory?(dir)
  raise ArgumentError, "Path #{dir} is not a subdirectory of #{@destination}" unless Pathname.new(dir).fnmatch?(File.join(@destination, '**'))
end