• Concatenates two paths, using '' character

    Parameters

    • path1: string

      path to place first

    • path2: string

      path to combine to path1

    Returns string

    the concatenated file path

    combinePaths('end with slash\\', '\\start with slash'); // '\end with slash\start with slash\'
    combinePaths('test path', 'test\\path'); // '\test path\test\path\'