Skip to content

sverrejoh/rclonefile-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rclonefile-cli

The macOS API for creating copy on write clones of files and folders

Description

This is a small wrapper around the clonefile(2) API on macOS for cloning files and folders.

Why?

  • 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!

Install

    npm install --global rclonefile-cli

Usage

$ 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

Related

Releases

No releases published

Packages

No packages published