code: def find_files(path='', ext='', level=None, typ=list, dirs=False, files=True, verbosity=0):
      gen = generate_files(path, ext=ext, level=level, dirs=dirs, files=files, verbosity=verbosity)
      if isinstance(typ(), collections.Mapping):
          return typ((ff['path'], ff) for ff in gen)
      elif typ is not None:
          return typ(gen)
      else:
          return gen