Allow chaining after the addDir method