Skip to content

Instantly share code, notes, and snippets.

@b-coimbra
Last active December 15, 2017 14:24
Show Gist options
  • Save b-coimbra/6e693d7e04dc86ce07bdada347918a58 to your computer and use it in GitHub Desktop.
Save b-coimbra/6e693d7e04dc86ce07bdada347918a58 to your computer and use it in GitHub Desktop.
Dir['*'].each { |f| File.rename(f, f.gsub(/\-|\_/m, ' ')) if f != $0 } rescue Errno::ENOENT abort 'INVALID DIRECTORY'
require 'fileutils'
Dir['*'].each { |f| (puts "[-] #{f} "; FileUtils::rm_rf(f)) if File.zero?(f) } rescue Errno::ENOENT abort 'Run as Admin'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment