Mercurial Hosting > luan
view src/goodjava/io/IoUtils.java @ 1474:13cbce740e1e
LowercaseAnalyzer
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 17 Apr 2020 21:53:09 -0600 |
parents | 6c6ce14db6a8 |
children | c7b86342857f |
line wrap: on
line source
package goodjava.io; import java.io.File; import java.io.IOException; import java.nio.file.Files; public final class IoUtils { private IoUtils() {} // never public static void move( File from, File to ) throws IOException { Files.move( from.toPath(), to.toPath() ); } public static void delete(File file) throws IOException { Files.deleteIfExists( file.toPath() ); } }