def compare(self, path1, path2 ): ''' Compare path1 and path2 to see if they are identical ''' matchFails = [] matchCount = 0 fo = FileOps() for lhs, rhs in itertools.izip_longest( self.listAll(path1), self.listAll( path2 ), fillvalue = None ): matchCount = matchCount + 1 if matchCount == 1 : # allow us to compare to trees with different root names # we skip the first match continue if not fo.isEqual( lhs, rhs ) : matchFails.append(( lhs, rhs )) return matchFails