Skip to main content

Function: copyDir()

copyDir(src, destination, options?): Promise<any>

Empty directories is never created. Hard links is used if supported and allowed.

Writes are checked by their real path (see CopyDirOptions.containmentRoot): a symlink at a destination is replaced, never followed, and a symlink is recreated only when it stays inside the containment root, leads into an allowed root or is allowed by CopyDirOptions.externalLinks.

Parameters​

src​

string

destination​

string

options?​

CopyDirOptions = {}

Returns​

Promise<any>