join path segments with slashes in between.

  • Parameters

    • Rest...segments: string[]

    Returns string