add directory struct

Signed-off-by: chaoyi1986 <chaoyi_1986@sina.com>