Added method addDir()