(absPath: string)
| 188 | let entriesWritten = 0; |
| 189 | |
| 190 | function checkPath(absPath: string): void { |
| 191 | if (!absPath.startsWith(`${root}/`) && absPath !== root) { |
| 192 | throw new Error(`mount ${root}: writeFile/mkdir target ${absPath} is outside the mount root`); |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | return { |
| 197 | root, |