Continue work on addDir (unfinished)