def _remove_duplicate_folders(folder_list):
  """Removes duplicate folders from a list of folders and maintains the
  original order of the list

  Args:
    folder_list(list of str): List of folders

  Returns:
    list of str: List of folders with duplicates removed
  """
  new_folders_set = set()
  new_folders_list = []
  for folder in folder_list:
    if folder not in new_folders_set:
      new_folders_set.add(folder)
      new_folders_list.append(folder)
  return new_folders_list