Created
March 31, 2015 04:20
-
-
Save greymeister/56ed7c9059c07bafb64f to your computer and use it in GitHub Desktop.
Creates some Archive Directories
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
baseDir = "/Users/user/Documents/Archive" | |
alphabetRange = ('A'..'Z') | |
alphabetList = new ArrayList (alphabetRange) | |
alphabetList.each{letter -> | |
file = new File("${baseDir}/$letter").mkdirs() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment