Write DirContents to a directory.
Keys are always relative to rootDir. A key that traverses above it (such as '../escaped.txt') throws instead of writing, so contents built from an untrusted source cannot reach outside the directory they were meant for.
rootDir
'../escaped.txt'
@augment-vir/node
Write DirContents to a directory.
Keys are always relative to
rootDir. A key that traverses above it (such as'../escaped.txt') throws instead of writing, so contents built from an untrusted source cannot reach outside the directory they were meant for.