commit

fun commit(dir: Directory)

Writes and syncs to the Directory dir, taking care to remove the segments file on exception

Note: .changed should be called prior to this method if changes have been made to this SegmentInfos instance