Refactor the way we handle directories in traverse.

Bug: 18064146
Change-Id: I45fba9c2978bc0c8f23804c730ab631da759ac70
1 file changed