summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/kbackupfabric/util/cow/FileEagerCopier.java
blob: 0f123741ce5ba07bfaf70907e670e97919575b23 (plain)
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;
    }
}