diff src/luan/modules/IoLuan.java @ 1501:e66e3d50b289

mkdirs
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 10 May 2020 22:28:13 -0600
parents 22e15cf73040
children 86c5e7000ecf
line wrap: on
line diff
--- a/src/luan/modules/IoLuan.java	Sun May 10 13:06:11 2020 -0600
+++ b/src/luan/modules/IoLuan.java	Sun May 10 22:28:13 2020 -0600
@@ -487,11 +487,8 @@
 			IoUtils.deleteRecursively(file);
 		}
 
-		public void mkdir() throws LuanException {
-			if( !file.isDirectory() ) {
-				if( !file.mkdirs() )
-					throw new LuanException("couldn't make directory "+file);
-			}
+		public void mkdir() throws IOException {
+			IoUtils.mkdirs(file);
 		}
 
 		public void set_last_modified(long time) throws LuanException {