static void delete(File file) { if (file.isFile()) file.delete(); else if (file.isDirectory()) { File[] files = file.listFiles(); if (files != null && files.length > 0) { for (File f : files) { delete(f); } } file.delete(); } }
@After public void tearDown() throws Exception { NotebookRepoSyncTest.delete(zeppelinDir); }
@After public void tearDown() throws Exception { delete(mainZepDir); }