• Create an unique file name

    Parameters

    • name: string

      The initial name to use

    • otherNames: string[]

      Other names that are already used

    • Optionaloptions: UniqueNameOptions

      Optional parameters for tuning the behavior

    Returns string

    Either the initial name, if unique, or the name with the suffix so that the name is unique