code: def _pruned(self, path):
      
      if path[0] == '/':
        path = path[1:]
      for rule in reversed(self.pruneRules):
        if isinstance(rule, six.string_types):
          if fnmatch(path, rule):
            return True
        elif rule(path):
          return True
      return False
docs: Is a stat tree node pruned?  Goes through the list of prune rules
      to find one that applies.  Chronologically newer rules are
      higher-precedence than older ones. If no rule applies, the stat is
      not pruned by default.