Function getExtension

  • return the extension of the file in the given path

    Parameters

    • path: string

      path containing the filename and extension to extract

    Returns string

    filename extension.