Buildsa  directory and file structure based as defined in a json, or generates a json based on an existing directory's contents