do_getdent added (first draft)