What do you think of `Dir.entries(params[:plugin_path]) == %w(. ..)` instead?