Skip to main content

Function: assertCopiedSymlinksContained()

assertCopiedSymlinksContained(containment, links, allowedRoots, what, externalLinks?): Promise<void>

Checks the symlinks copyDir and the app file copier recreate, once all of them exist: each must lead (through the others, also when the end does not exist) into the containment root or one of allowedRoots, or be allowed by the fileOptions.allowExternalLinks build option (externalLinks). A symlink that is not is removed and the copy fails.

Parameters​

containment​

WriteContainment

readonly Link & object[]

allowedRoots​

readonly string[]

what​

string

ExternalLinkPolicy | null

Returns​

Promise<void>