(String dest, byte[] bytes)
| 17 | |
| 18 | public final class FileUtils { |
| 19 | public static void write(String dest, byte[] bytes) { |
| 20 | Path path = Paths.get(dest); |
| 21 | |
| 22 | try { |
| 23 | Files.write(path, bytes); |
| 24 | } catch (IOException e) { |
| 25 | Grasscutter.getLogger().warn("Failed to write file: " + dest); |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | public static byte[] read(String dest) { |
| 30 | return read(Paths.get(dest)); |
no test coverage detected