• Ensures the path starts and ends with ''

    Parameters

    • path: string

      path to create display path from

    Returns string

    path with ''

    createDisplayPath('\\'); // '\'
    createDisplayPath('hi'); // '\hi\'
    createDisplayPath('hi\\'); // '\hi\'
    createDisplayPath('hi\\world'); // '\hi\world\'