Resolve a file path with security checks.
When virtualMode=true, treat incoming paths as virtual absolute paths under this.cwd, disallow traversal (.., ~) and ensure resolved path stays within root. When virtualMode=false, preserve legacy behavior: absolute paths are allowed as-is; relative paths resolve under cwd.
resolvePath(key: string): string| Name | Type | Description |
|---|---|---|
key* | string | File path (absolute, relative, or virtual when virtualMode=true) |