improve findleaves

only store parent dirs for leaves.
1 file changed