code: function(callback) {
      //process first all directories and then all files.
      async.mapSeries(['getDirectories', 'getFiles'], (nodeSource, cbMap) => {
        syncDb[nodeSource]((err, nodes) => {
          async.eachSeries(nodes, (node, cb) => {
            if(node.localActions && node.localActions.create) {
              var nodePath = utility.joinPath(node.parent, node.name);
  
              syncDb.findByPath(nodePath, (err, syncedNode) => {
                try {
                  var stat = fsWrap.lstatSync(nodePath);
                } catch(e) {
                  logger.warning('resolveConflicts got lstat error on node', {category: 'sync-local-delta', nodePath, code: e.code});
                  throw new BlnDeltaError(e.message);
                }
  
                //deleted and recreated at same path
                if(syncedNode.localActions && syncedNode.localActions.delete) {
                  syncedNode.ino = stat.ino;
  
                  delete syncedNode.localActions.delete;
  
                  if(syncedNode.directory) {
                    syncedNode.ctime = stat.ctime;
                    syncedNode.mtime = stat.mtime;
                    syncedNode.size = stat.size;
                  } else {
                    syncedNode.localActions.create = node.localActions.create;
                  }
  
                  async.parallel([
                    (cbParallel) => {
                      syncDb.update(syncedNode._id, syncedNode, cbParallel);
                    },
                    (cbParallel) => {
                      syncDb.remove(node._id, cbParallel);
                    }
                  ], cb);
                } else {
                  cb(null);
                }
              });
            } else {
              cb(null);
            }
          }, cbMap);
        });
      }, callback);
    }
docs: Scans the database and checks for conflicts (eg. delete & recrate).
  Sets the necessary localActions in the database and removes duplicate nodes.
  
  @param {Function} callback - callback function
  @returns {void} - no return value