Compare the git directory and git files generators.
IntermediateConceptApplicationSets, App-of-Apps & Multi-Cluster
Answer
The directory generator emits one set per directory matching a glob (apps/*), with parameters path.path, path.basename, path.segments; exclude: true entries skip folders. It is ideal for "one folder, one app".
The files generator reads JSON or YAML files matching a glob (envs/*/config.json) and turns their keys into parameters, plus path.* for the file's directory. It is ideal when each app or environment needs structured settings (cluster, namespace, flags) beyond its name.