fix directory walk v1

had a bug when root pointed to a network