Mercurial Hosting > luan
comparison 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 |
comparison
equal
deleted
inserted
replaced
1500:f01abd6d5858 | 1501:e66e3d50b289 |
---|---|
14 Files.move( from.toPath(), to.toPath() ); | 14 Files.move( from.toPath(), to.toPath() ); |
15 } | 15 } |
16 | 16 |
17 public static void delete(File file) throws IOException { | 17 public static void delete(File file) throws IOException { |
18 Files.deleteIfExists( file.toPath() ); | 18 Files.deleteIfExists( file.toPath() ); |
19 } | |
20 | |
21 public static void mkdirs(File file) throws IOException { | |
22 Files.createDirectories( file.toPath() ); | |
19 } | 23 } |
20 | 24 |
21 public static boolean isSymbolicLink(File file) { | 25 public static boolean isSymbolicLink(File file) { |
22 return Files.isSymbolicLink(file.toPath()); | 26 return Files.isSymbolicLink(file.toPath()); |
23 } | 27 } |