Created
July 20, 2015 08:36
-
-
Save ammaaim/042993c55ea6ba3c84d5 to your computer and use it in GitHub Desktop.
Create folder if not exist
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 = "name" | |
Dir.mkdir(directory_name) unless File.exists?(directory_name) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment