From 62ae677f748d90f8117bd063938a4b77f6ad0705 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 20 Jan 2024 00:58:31 +0800 Subject: feature: native copy-on-write support --- src/main/java/com/keuin/kbackupfabric/util/cow/FileCopier.java | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/main/java/com/keuin/kbackupfabric/util/cow/FileCopier.java (limited to 'src/main/java/com/keuin/kbackupfabric/util/cow/FileCopier.java') diff --git a/src/main/java/com/keuin/kbackupfabric/util/cow/FileCopier.java b/src/main/java/com/keuin/kbackupfabric/util/cow/FileCopier.java new file mode 100644 index 0000000..eb21af7 --- /dev/null +++ b/src/main/java/com/keuin/kbackupfabric/util/cow/FileCopier.java @@ -0,0 +1,9 @@ +package com.keuin.kbackupfabric.util.cow; + +import java.io.IOException; + +public interface FileCopier { + void copy(String dst, String src) throws IOException; + + boolean isCow(); +} -- cgit v1.2.3