in reply to Re: Recursive Directory print
in thread Recursive Directory print

The return statement is undoubtedly the crux of the OP’s problem:   as soon as the innermost occurrence returns, all of them do.   This program will probably work as intended if the word return is taken out.