99100101102103104105
File newDir = new File(currentDir, newFolder); if (newDir.exists()) throw new FolderAlreadyExistsException(); if (!newDir.mkdir()) throw new InvalidNewFolderNameException(); }