def get_restore_table_matches(table_name_wildcard, separator):
  matching_tables = []
  try:
    dir_list = os.listdir("./" + DUMP_PATH)
  except OSError:
    logging.info(DUMP_PATH % "Cannot find \"./%s\", Now trying current working directory..")
    dump_data_path = CURRENT_WORKING_DIR
    try:
      dir_list = os.listdir(dump_data_path)
    except OSError:
      logging.info("Cannot find \"%s\" directory containing dump files!" % dump_data_path)
      sys.exit(1)

  for dir_name in dir_list:
    if table_name_wildcard == "*":
      matching_tables.append(dir_name)
    elif dir_name.split(separator, 1)[0] == table_name_wildcard.split("*", 1)[0]:
      matching_tables.append(dir_name)

  return matching_tables
dataset/ETHPy150Open bchew/dynamodump/dynamodump.py/get_restore_table_matches/swapped operands of `%`