cloneFile creates a copy-on-write clone on a compatible macOS volume. It does not overwrite an existing destination and throws the operating-system error when cloning fails. It is a small macOS wrapper around clonefile(2).
pnpm add macos-native-clone-fileimport { cloneFile } from "macos-native-clone-file";
cloneFile("/path/to/source.db", "/path/to/source.db.backup");MIT