def addGroup(segments, group, permissions):
    """
        Add `group` to file/folder at `segments` using `permissions`.

        On Unix it will replace the current group and
        is equivalent to setGroup.
        """
