Hmm, only did it this way since the @sub_dirs array has subdirs continuously appended inside of the loop. If I did @sub_dirs.each, wouldn't it only perform the loop based on the current # of elements at that given time? If I append to it, I'll have to loop again to catch the appended items I believe.

Pretty new to ruby here, so thanks for any feedback and my apologies for the lack of knowledge.