'scan file for timestamps (may take a long time)'

def __scan__(self):

    if ((not hasattr(self, 'filename')) or (not hasattr(self, 'start'))):
        return 0
    file = open(self.filename)
    log.debug(u'scanning    file...')
    while 1:
        file.seek((self.__seek_size__ * 10), 1)
        buffer = file.read(self.__sample_size__)
        if (len(buffer) < 10000):
            break
        pos = self.__search__(buffer)
        if (pos == None):
            continue
        log.debug((u'buffer    position:    %r' % self.get_time(buffer[pos:])))
    file.close()
    log.debug(u'done    scanning    file')
