Function normalizeAbsolute

Collapse ./../empty segments into a clean absolute path. .. can never climb above the root — a (virtual) root's parent is itself, which is what keeps both the mount space and the corpus space closed under traversal.

  • Parameters

    • path: string

    Returns string