code: def compare_md5(self):
          
          if self.direction == "put":
              remote_md5 = self.remote_md5()
              return self.source_md5 == remote_md5
          elif self.direction == "get":
              local_md5 = self.file_md5(self.dest_file)
              return self.source_md5 == local_md5
docs: Compare md5 of file on network device to md5 of local file.