The macOS API for creating copy on write clones of files and folders
This is a small wrapper around the clonefile(2) API on macOS for cloning files and folders.
- Clones files and folders, without taking up disk space
- Uses clonefile(2) introduced in macOS 10.12
- Takes advantage of the APFS file system
- All flags available.
- Fast!
npm install --global rclonefile-cli
$ rclonefile --help
Usage
$ rclonefile <source> <destination>
Options
--no-follow, -f Don't follow the src file if it is a symbolic link
--no-owner-copy, -c Don't copy ownership information from the source
--clone-acl, -a Copy ACLs from the source file.
Examples
$ rclonefile super-mario.png super-clone.png
- rclonefile - API for this module
- clonefile(2) - Man page for system API