Add dirtree and tree