private void createDirectories(NewProject project, MaxmlMap map, Key key) {
List<String> dirs = map.getStrings(key.name(), Arrays.asList(new String [0]));
for (String scopedDir : dirs) {
String s = scopedDir.substring(0, scopedDir.indexOf(' ')).trim();
Scope scope = Scope.fromString(s);
if (scope.isValidSourceScope()) {
String folder = StringUtils.stripQuotes(scopedDir.substring(s.length() + 1).trim());
File file = new File(project.dir, folder);
file.mkdirs();
} else {
log("Illegal " + key.name() + " scope: " + s);