remove scandirs & lstats in favour of readdirs