dir struct test