Enter to send·Shift+Enter new line
Canonicalize and validate an absolute path before permission checking.
Throws for:
/
..
~
Empty and . segments are dropped (/a/./b and /a//b become /a/b).
.
/a/./b
/a//b
/a/b
validatePath(raw: string): string
raw
string