Next we define the
PathHash class used to
represent the rows of the table.
This class is inside the
# - - - F i l e D a t a . P a t h H a s h class PathHash(object): '''Represents one row of the database. Exports: PathHash(path, hash, size): [ (path is the absolute path name of a file) and (hash is its SHA-256 hash signature as a str) and (size is its size as an int) -> return a new PathHash instance with those values ] .path: [ as passed to constructor, read-only ] .hash: [ as passed to constructor, read-only ] .size: [ as passed to constructor, read-only ] ''' def __init__(self, path, hash, size): '''Constructor. ''' self.path = path self.hash = hash self.size = size