add depth-first option to ls tool command