resolve a file path so that it becomes absolute, with unix directory separator ("/"). TODO: refactor the name pathResolve to resolvePath

  • Parameters

    • Rest...segments: string[]

    Returns string