Why do we want to exclude any "Analysis" folder from the processing?
This is something you will see in the following sections. If we are not careful with folder handling, we can quickly run into endless loop problems with our macro.
There are two reasons why we should identify our output folders and prevent them from being further processed:
This means that the macro would enter in an unstoppable "downwards" spiral in creating hundreds or thousands of nested "Analysis" folders in each other. This will only stop if it crashes or you restart the computer.
The resulting file path of those nested folders is so long that some computer systems do not allow you to easily delete it. Therefore, try to avoid that!
This is were the matches(); command comes very handy to exclude those from further consideration. If we would create the endless loop folder creation it might even be difficult to delete such a sub-folder tree from your computer due to a too long file path. So, be very careful to not enter into this rabbit hole.