Add DirUtils

This commit is contained in:
Marc Baloup 2020-02-02 16:37:06 +01:00
parent 173762e481
commit dba1916de7

View File

@ -0,0 +1,13 @@
package fr.pandacube.util;
import java.io.File;
public class DirUtils {
public static void delete(final File target) {
if (target.isDirectory())
for (final File child : target.listFiles())
delete(child);
target.delete();
}
}