summaryrefslogtreecommitdiff
path: root/src/java/FileCowCopier.java
blob: 72953079e7f747483c143b7e13f4511e78f158be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.keuin.kbackupfabric.util.cow;


public final class FileCowCopier {

    public static native void init();

    public static native void copy(String dst, String src);

    public static native String getVersion();

    public static void main(String[] args) {
        System.loadLibrary("kbackup_cow");
        FileCowCopier.init();
        System.out.println("kbackup-cow version: " + FileCowCopier.getVersion());
        FileCowCopier.copy("b", "a");
    }

}