 
 
         it "does not update DB document when folder exists", (done) =>
-            filesystem.createDirectoryDoc dirPath, true, (err, res) =>
+            filesystem.createDirectoryDoc dirPath, (err, res) =>
                 pouch.db.query 'folder/byFullPath', key: "/#{dirName}", (err, res) =>
                     should.not.exist err
                     res.rows.length.should.not.equal 0

        it "creates parent directory DB doc", (done) ->
            mkdirp dirPath2, (err) ->
                should.not.exist err
                filesystem.createDirectoryDoc dirPath2, false, (err, res) ->
                    should.not.exist err
                    should.exist res._id
                    pouch.db.query 'folder/byFullPath', key: "/#{parentDirName}", (err, res) ->

        it "creates a DB document from a local folder information", (done) ->
            fs.mkdir dirPath, (err) ->
                should.not.exist err
                filesystem.createDirectoryDoc dirPath, (err, res) ->
                    should.not.exist err
                    should.exist res._id
                    pouch.db.query 'folder/byFullPath', key: "/#{dirName}", (err, res) ->
