Using the [project_name].build.cs file, you should be able to iterate through folders using DirectoryInfo.