Adding debug stuff for get_ditectory_structure

Adding debug stuff for get_ditectory_structure