def FileIterator(base, separator=os.path.sep):
  dirs = ['']
  while dirs:
    current_dir = dirs.pop()
    for entry in os.listdir(os.path.join(base, current_dir)):
      name = os.path.join(current_dir, entry)
      fullname = os.path.join(base, name)
      if os.path.isfile(fullname):
        if separator == '\\':
          name = name.replace('\\', '/')
        yield name
      elif os.path.isdir(fullname):
        dirs.append(name)
Get an entity profile url without using url_for
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/tools/appcfg.py/FileIterator--crossover with--dataset/ETHPy150Open pytent/pytentd/tentd/tests/__init__.py/profile_url_for