Oh, just set a high value to repeat 9999 times, then force an error when there are no pages left to repeat.
You still can “continue” the rest of the scenario in the “error handling” route, with the list of all the folders available.
Another repeater-error use-case is for polling, e.g.: Why is Polling at make.com is so damn hard? - #4 by samliew