I want to automate the process of inputting tex files from subfolders. Previously I managed to automate the inclusion of images from "images" subfolder within the subfolder of each subfile. I would like to do the same for tex files. Please have a look at: Is it possible to use includegraphics with relative path with subfolder, inside subfiles?
Now I want to add a modifier, so that
subfolder1/fig1.tex in the file, while
subfolder2/fig1.tex to my file.