src/borg/patterns.py
def match(self, path):
        """Return True or False depending on whether *path* is matched.

        If no match is found among the patterns in this matcher, then the value
        in self.fallback is returned (defaults to None).

        """
        path = normalize_path(path).lstrip(os.path.sep)
        # do a fast lookup for full path matches (note: we do not count such matches):
        non_existent = object()
        value = self._path_full_patterns.get(path, non_existent)

        if value is not non_existent:
            # we have a full path match!
            self.recurse_dir = command_recurses_dir(value)
            return self.is_include_cmd[value]

        # this is the slow way, if we have many patterns in self._items:
        for (pattern, cmd) in self._items:
            if pattern.match(path, normalize=False):
                self.recurse_dir = pattern.recurse_dir
                return self.is_include_cmd[cmd]

        # by default we will recurse if there is no match
        self.recurse_dir = self.recurse_dir_default
        return self.fallback
Return True or False depending on whether *path* is matched.

        If no match is found among the patterns in this matcher, then the value
        in self.fallback is returned (defaults to None).

        
Return True or False depending on whether *path* is matched.
If no match is found among the patterns in this matcher, then the value
in self.fallback is returned (defaults to None).
Return True or False depending on whether * path * is matched . If no match is found among the patterns in this matcher then the value in self . fallback is returned ( defaults to None ) .
def match(self, path):
        path = normalize_path(path).lstrip(os.path.sep)
        non_existent = object()
        value = self._path_full_patterns.get(path, non_existent)
        if value is not non_existent:
            self.recurse_dir = command_recurses_dir(value)
            return self.is_include_cmd[value]
        for (pattern, cmd) in self._items:
            if pattern.match(path, normalize=False):
                self.recurse_dir = pattern.recurse_dir
                return self.is_include_cmd[cmd]
        self.recurse_dir = self.recurse_dir_default
        return self.fallback
def match ( self , path ) : path = normalize_path ( path ) . lstrip ( os . path . sep ) non_existent = object ( ) value = self . _path_full_patterns . get ( path , non_existent ) if value is not non_existent : self . recurse_dir = command_recurses_dir ( value ) return self . is_include_cmd [ value ] for ( pattern , cmd ) in self . _items : if pattern . match ( path , normalize = False ) : self . recurse_dir = pattern . recurse_dir return self . is_include_cmd [ cmd ] self . recurse_dir = self . recurse_dir_default return self . fallback
Return True or False depending on whether *path* is matched.
Return True or False depending on whether * path * is matched .
"""Return True or False depending on whether *path* is matched.

        If no match is found among the patterns in this matcher, then the value
        in self.fallback is returned (defaults to None).

        """ # do a fast lookup for full path matches (note: we do not count such matches): # we have a full path match! # this is the slow way, if we have many patterns in self._items: # by default we will recurse if there is no match
self
path