Adds a new function for deleting files recursively

This commit is contained in:
2021-02-12 16:12:58 +01:00
parent 3254481326
commit 8cdb1f143c
3 changed files with 33 additions and 12 deletions

View File

@ -109,12 +109,6 @@ public class JarDownloaderTest {
if (!target.exists() && !target.mkdirs()) {
throw new IllegalArgumentException("Unable to create the test files directory");
}
File[] oldFiles = target.listFiles();
if (oldFiles == null) {
throw new IllegalArgumentException("Unable to list files in jar test directory");
}
for (File file : oldFiles) {
assertTrue(file.delete());
}
CommonFunctions.removeFilesRecursively(target);
}
}