def grouping_prefix(self, path):
        letters = [x for x in path.split('/') if x]
        for prefix in self.ignore:
            if letters[:len(prefix)] == prefix:
                return '/' + '/'.join(letters[:len(prefix) + 1])
        return '/%s' % (letters[0] if letters else '',)
dataset/ETHPy150Open saltstack/salt/doc/_ext/httpdomain.py/HTTPIndex.grouping_prefix/original