• Adds the paths to the base path.

    Parameters

    • basePath: string

      The base path (POSIX or Windows).

    • Rest...paths: string[]

      Subpaths to attach (POSIX).

    Returns string

    The potentially changed path (POSIX).