Use listFile to avoid opening many streams durring recursion.