• Get the name of a path (i.e. the last component)

    Returns the last component of the path. Does not include leading or trailing slashes.

    If this path is the root directory, return IsRoot.

    Parameters

    • p: string

    Returns FsResult<string>