Resolve a path to its absolute, canonical form.
Expands ~, resolves . and .., and follows all symbolic links.
Returns null if any component of the path does not exist.
Parameters
path: string
Path to resolve.
Returns string|null
Absolute canonical path, or null if it cannot be resolved.
Resolve a path to its absolute, canonical form. Expands
~, resolves.and.., and follows all symbolic links. Returnsnullif any component of the path does not exist.