diff src/goodjava/io/IoUtils.java @ 1501:e66e3d50b289

mkdirs
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 10 May 2020 22:28:13 -0600
parents 22e15cf73040
children d80395468b4e
line wrap: on
line diff
--- a/src/goodjava/io/IoUtils.java	Sun May 10 13:06:11 2020 -0600
+++ b/src/goodjava/io/IoUtils.java	Sun May 10 22:28:13 2020 -0600
@@ -18,6 +18,10 @@
 		Files.deleteIfExists( file.toPath() );
 	}
 
+	public static void mkdirs(File file) throws IOException {
+		Files.createDirectories( file.toPath() );
+	}
+
 	public static boolean isSymbolicLink(File file) {
 		return Files.isSymbolicLink(file.toPath());
 	}