Created
July 24, 2015 16:02
-
-
Save anonymous/87d6d7fa88e73f792c61 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
directory_name = %w[Original Modified] | |
directory_name.each do |dir| | |
if dir.match(directory_name) | |
abort("These folders already exist. Script aborting.") | |
else | |
Dir.mkdir(directory_name[0]) unless File.exists?(directory_name[0]) | |
Dir.mkdir(directory_name[1]) unless File.exists?(directory_name[1]) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment