dirs returns boolean when adding new document
Merge pull request #2 from Raulserg/master

dirs returns boolean when adding new document