/** * Returns a new fresh folder with a random name under the temporary * folder. */ public File newFolder() throws IOException { try { File tempDir = createTempDir(getRoot()); addSourceInfo(tempDir); return tempDir; } catch (IllegalStateException e) { throw new IOException(e.getMessage()); // IOException(e) not available prior to 1.6 } }