1.0.1 • Published 1 year ago
rclonefile v1.0.1
rclonefile
The macOS API for creating copy on write clones of files.
This is a small wrapper around the clonefile API on macOS for cloning files using the APFS file system.
Usage
Sync API
import { cloneFileSync } from "rclonefile";
cloneFileSync("source/mario.txt", "target/mario-clone-txt");
async/await
import { cloneFile } from "rclonefile";
await cloneFile("source/mario.txt", "target/mario-clone-txt");
Promise
import { cloneFile } from "rclonefile";
cloneFile("source/mario.txt", "target/mario-clone-txt").then(() => {
// Success
})
1.0.1
1 year ago