Next / Previous / Contents / Shipman's homepage

17.6. FileData.genPaths(): Generate all absolute paths in ascending order

This method retrieves the rows of the table in their primary key order, lexically ascending by path name.

# - - -   F i l e D a t a . g e n P a t h s

    def genPaths(self):
        '''Generate all the rows by ascending pathname.
        for row in self.s.query(self.PathHash):
            yield row