Created
May 22, 2015 23:13
-
-
Save ouaziz/e9f4b4483498a4f92e8d to your computer and use it in GitHub Desktop.
Create directory
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
def create_directory name | |
directory_name = name | |
Dir.mkdir(directory_name) unless File.exists?(directory_name) | |
puts "Directory #{name} created" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment