Imagine a schema for defining expected directory/file structures for your applications.
Define it all in YAML, then use a proper library to:
-
validate an existing path structure against your schema
-
generate model folder/file trees in arbitrary or logical order
-
document your expected path structure based on properties of each dir/file key
Take a look at the following example schema.