Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Creates some Archive Directories
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