Calls File#mkdirs() and throws an exception if it fails.
(File d)
| 92 | |
| 93 | /** Calls {@link File#mkdirs()} and throws an exception if it fails. */ |
| 94 | public static void mkdirs(File d) { |
| 95 | retry(d, dir -> { |
| 96 | java.nio.file.Files.createDirectories(dir.toPath()); |
| 97 | return null; |
| 98 | }); |
| 99 | } |
| 100 | |
| 101 | /** Calls {@link FileUtils#forceDelete(File)} and throws an exception if it fails. If the file doesn't exist at all, that's fine. */ |
| 102 | public static void forceDelete(File f) { |
no test coverage detected