Skip to content

About

macOS copy-on-write support for Node.js

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

macos-native-clone-file

CI npm version npm downloads

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).

Install

pnpm add macos-native-clone-file

Usage

import { cloneFile } from "macos-native-clone-file";

cloneFile("/path/to/source.db", "/path/to/source.db.backup");

License

MIT

About

macOS copy-on-write support for Node.js

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages