clonefile
Functions
cloneAvailable()
function cloneAvailable(): booleanDefined in: tar/src/clonefile.ts:106
True where cloneDir can work: macOS, on a Node whose
node:ffi loads. Being built in is not enough: the permission model
without --allow-ffi denies it. Loads it, once.
Returns
boolean
cloneDir()
function cloneDir(src, dst): string | trueDefined in: tar/src/clonefile.ts:115
Clone the directory src to dst, which must not exist, with
clonefile(2). Returns true, or the errno code of the failure:
ENOTSUP where cloning is unavailable (not macOS, no node:ffi,
a filesystem without clones), EXDEV across volumes, ENOENT for a
missing source, and so on.
Parameters
| Parameter | Type |
|---|---|
src | string |
dst | string |
Returns
string | true