Getdents now uses memcpy, in place