#NEWLINE# def rebuild( self ) : #NEWLINE# #INDENT# '\n        Rebuild redis index from file data.\n\n        Rebuilding the index does not currently discard old index data,\n        which could be accomplished by computing the set of all keys\n        before and after the rebuild and removing the difference.\n        ' #NEWLINE# for path in self . storage : #NEWLINE# #INDENT# filename = basename ( path ) #NEWLINE# metadata = self . _get_metadata ( path , filename ) #NEWLINE# self . projects . add_metadata ( metadata )