(value: string | undefined)
| 78 | } |
| 79 | |
| 80 | function parseMountPoint(value: string | undefined): string { |
| 81 | const mountPoint = value === undefined || value === "" ? DEFAULT_MOUNT_POINT : value; |
| 82 | if (!isAbsolute(mountPoint)) { |
| 83 | throw new Error(`MOUNT_POINT must be an absolute path, got ${JSON.stringify(value)}`); |
| 84 | } |
| 85 | |
| 86 | return mountPoint; |
| 87 | } |
| 88 | |
| 89 | function send( |
| 90 | response: ServerResponse, |