Function basename

  • Returns the base name of the given path. For example for "/abc/somefile.txt" it will return "somefile.txt"

    Parameters

    • path: string

    Returns string