move listdir recursive command to class variable