The following lines of code have the purpose to transfer folder paths to the list of contained files, right? 

It took some time for me to figure that out, so maybe it would be useful to extract a method here.