def GetAllFieldInDocument(document, field_name):
  fields = []
  for f in document.field_list():
    if f.name() == field_name:
      fields.append(f)
  return fields
Validate that the value of confvar is an existent path.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/search/search_util.py/GetAllFieldInDocument--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/lib/conf.py/validate_path