def _is_current(self, file_path, zip_path):
timestamp, size = self._get_date_and_size(self.zipinfo[zip_path])<EOL>if not os.path.isfile(file_path):<EOL><INDENT>return False<EOL><DEDENT>stat = os.stat(file_path)<EOL>if stat.st_size != size or stat.st_mtime != timestamp:<EOL><INDENT>return False<EOL><DEDENT>zip_contents = self.loader.get_data(zip_path)<EOL>with open(file_path, '<STR_LIT:rb>') as f:<EOL><INDENT>file_contents = f.read()<EOL><DEDENT>return zip_contents == file_contents<EOL>
Return True if the file_path is current for this zip_path