Recursive folder handler