Functional traversing through folders.