def create_destinations_list(dest_dir, parent_list):
  dirlist = list()
  if not os.path.isdir(dest_dir):
    # Create the destination folder first, if necessary
    os.mkdir(dest_dir)
  # Build the list of parent directories
  for path in parent_list:
    if path.startswith('override-'):
      # skip overrides, they're already in the overrides directory
      continue
    else:
      parentdir = os.path.dirname(path)
      if parentdir not in dirlist:
        dirlist.append(parentdir)
  # print "Dir list: %s" % dirlist
  return dirlist
Carves up a mime-type and returns a tuple of the
dataset/ETHPy150Open facebook/IT-CPE/autopkg_runner/autopkg_runner.py/create_destinations_list--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Paste-2.0.1/paste/util/mimeparse.py/parse_mime_type