code: def check_archive_ext (archive):
      
      if not archive.lower().endswith(".dms"):
          rest = archive[-4:]
          msg = "xdms(1) archive file must end with `.dms', not `%s'" % rest
          raise util.PatoolError(msg)
docs: xdms(1) cannot handle files with extensions other than '.dms'.