/** * Deletes all temporary directories and files after the merging operation is completed. * * @throws IOException * If an I/O exception occurred. */ public void cleanUp() throws IOException { logInfoMessage("[" + PEAR_MERGER + "]: " + "deleting temporary files"); FileUtil.deleteDirectory(_outAggRootDir); }
File entry = fileList[i]; if (entry.isDirectory()) done = deleteDirectory(entry); else if (!entry.delete()) { entry.deleteOnExit();
if (!FileUtil.deleteDirectory(_outAggRootDir)) throw new IOException("cannot delete existing folder " + _outAggRootDir.getAbsolutePath()); } else if (_outAggRootDir.isFile()) {
if (!FileUtil.deleteDirectory(rootDir)) done = false; return done;