Such that the script can be used to regenerate the files in the repository if the root directory is passed.