Skip to content

Instantly share code, notes, and snippets.

Created July 24, 2015 17:00
Show Gist options
  • Save anonymous/c29a3e1a007e9765344a to your computer and use it in GitHub Desktop.
Save anonymous/c29a3e1a007e9765344a to your computer and use it in GitHub Desktop.
DIR_NAMES = %w[Original Modified]
DIR_NAMES.each do |dname|
if File.exists?(dname)
abort("These files already exist. No further action will be taken.")
else
Dir.mkdir(dname)
puts "Starting creation of folders"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment