Mercurial Hosting > luan
comparison 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 |
comparison
equal
deleted
inserted
replaced
1500:f01abd6d5858 | 1501:e66e3d50b289 |
---|---|
485 | 485 |
486 public void delete() throws IOException { | 486 public void delete() throws IOException { |
487 IoUtils.deleteRecursively(file); | 487 IoUtils.deleteRecursively(file); |
488 } | 488 } |
489 | 489 |
490 public void mkdir() throws LuanException { | 490 public void mkdir() throws IOException { |
491 if( !file.isDirectory() ) { | 491 IoUtils.mkdirs(file); |
492 if( !file.mkdirs() ) | |
493 throw new LuanException("couldn't make directory "+file); | |
494 } | |
495 } | 492 } |
496 | 493 |
497 public void set_last_modified(long time) throws LuanException { | 494 public void set_last_modified(long time) throws LuanException { |
498 if( !file.setLastModified(time) ) | 495 if( !file.setLastModified(time) ) |
499 throw new LuanException("couldn't set_last_modified on "+file); | 496 throw new LuanException("couldn't set_last_modified on "+file); |