code: def changed(self, path, md5):
          
          actual = self.update(path)
  
          msg = "File '{}', md5 '{}', actual '{}'"
          logger.debug(msg.format(path, md5, actual))
  
          if not md5 or not actual:
              return True
  
          return actual.split(".")[0] != md5.split(".")[0]
docs: Check if file/directory has the expected md5.
  
          Args:
              path (str): path to the file/directory to check.
              md5 (str): expected md5.
  
          Returns:
              bool: True if path has the expected md5, False otherwise.