equals

open operator override fun equals(obj: Any?): Boolean

We consider another SegmentInfo instance equal if it has the same dir and same name.