1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
package com.keuin.kbackupfabric.util.cow; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; public class FileEagerCopier implements FileCopier { @Override public void copy(String dst, String src) throws IOException { Files.copy(Paths.get(src), Paths.get(dst)); } @Override public boolean isCow() { return false; } }