def sync_with_s3(self):
<EOL>self.update_list = []<EOL>logger.debug("<STR_LIT>".format(<EOL>len(self.local_file_list),<EOL>len(self.s3_obj_dict.keys())<EOL>))<EOL>if self.no_pooling:<EOL><INDENT>[self.compare_local_file(f) for f in self.local_file_list]<EOL><DEDENT>else:<EOL><INDENT>cpu_count = multiprocessing.cpu_count()<EOL>logger.debug("<STR_LIT>".format(cpu_count))<EOL>pool = ThreadPool(processes=cpu_count)<EOL>pool.map(self.compare_local_file, self.local_file_list)<EOL><DEDENT>logger.debug("<STR_LIT>".format(len(self.update_list)))<EOL>if self.no_pooling:<EOL><INDENT>[self.upload_to_s3(*u) for u in self.update_list]<EOL><DEDENT>else:<EOL><INDENT>logger.debug("<STR_LIT>".format(cpu_count))<EOL>pool = ThreadPool(processes=cpu_count)<EOL>pool.map(self.pooled_upload_to_s3, self.update_list)<EOL><DEDENT>
Walk through our self.local_files list, and match them with the list
of keys in the S3 bucket.