def __init__(self, path):
        self.path = path
        self.body_labels = collections.OrderedDict()
def _compileddirpats(self):
        pat, matchfunc = _buildregexmatch(
            [("glob", p, "") for p in self._globdirpats], "$"
        )
        return matchfunc