• Checks the validity of a file name. A valid name consists of word characters, '-' or '.'.

    Parameters

    • name: string

      The name of the file to validate.

    Returns boolean

    True if the filename is valid, false otherwise.