Skip to content
Snippets Groups Projects
Commit 79640c50 authored by Johannes Mey's avatar Johannes Mey
Browse files

do not fail when output directory does not yet exist

parent 7cbe66b5
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,8 @@ public class AbstractTest { ...@@ -8,6 +8,8 @@ public class AbstractTest {
protected static void deleteFolder(String folder) throws IOException { protected static void deleteFolder(String folder) throws IOException {
Path directory = Paths.get(folder); Path directory = Paths.get(folder);
if (Files.exists(directory)) {
Files.walkFileTree(directory, new SimpleFileVisitor<Path>() { Files.walkFileTree(directory, new SimpleFileVisitor<Path>() {
@Override @Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException { public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
...@@ -22,5 +24,6 @@ public class AbstractTest { ...@@ -22,5 +24,6 @@ public class AbstractTest {
} }
}); });
} }
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment