'Extracts the given info to a directory and checks the file size.'

def extract_info_to_dest(self, info, dest):

    self.zip.extract(info, dest)
    dest = os.path.join(dest, info.filename)
    if (not os.path.isdir(dest)):
        size = os.stat(dest)[stat.ST_SIZE]
        if (size != info.file_size):
            log.error(('Extraction    error,    uncompressed    size:    %s,    %s    not    %s' % (self.source, size, info.file_size)))
            raise forms.ValidationError(_('Invalid    archive.'))
