Mercurial Hosting > luan
diff src/goodjava/io/IoUtils.java @ 1488:af55cfad6e12
start lucene.backup
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 02 May 2020 15:38:48 -0600 |
parents | c7b86342857f |
children | 471ef3e6a84e |
line wrap: on
line diff
--- a/src/goodjava/io/IoUtils.java Fri May 01 16:17:20 2020 -0600 +++ b/src/goodjava/io/IoUtils.java Sat May 02 15:38:48 2020 -0600 @@ -29,4 +29,8 @@ delete(file); } + public static void link(File from,File to) throws IOException { + Files.createLink( to.toPath(), from.toPath() ); + } + } \ No newline at end of file