Function dirname

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

    Parameters

    • path: string

    Returns string