Method System.clonefile()


Method clonefile

void clonefile(string from, string to)

Description

Copy a file from with copy-on-write semantics to the destination named to.

Note

This function is currently only available on macOS, and then only when from and to reference a common file system with copy-on-write support (e.g. an APFS volume).

See also

hardlink(), symlink()