code: function(name, dirPath, oldDirPath, stat, syncedNode, nodePath, callback) {
      var contentChanged = fsWrap.nodeContentChanged(stat, syncedNode, nodePath);
      var oldNodePath = utility.joinPath(syncedNode.parent, syncedNode.name);
  
      syncedNode.localActions = syncedNode.localActions || {};
  
      if(utility.namesAreEqual(syncedNode.name, name) === false) {
        //node has been renamed
        syncedNode.localActions.rename = {oldName: syncedNode.name, actionInitialized: new Date()};
        syncedNode.name = name;
      }
  
      if(syncedNode.parent !== dirPath && syncedNode.parent !== oldDirPath) {
        //node has been moved
        syncedNode.localActions.move = {oldParent: syncedNode.parent, actionInitialized: new Date()};
        syncedNode.parent = dirPath;
      }
  
      if(contentChanged) {
        syncedNode.localActions.create = {immediate: false, actionInitialized: new Date()};
      }
  
      if(Object.keys(syncedNode.localActions).length === 0) {
        delete syncedNode.localActions;
      } else if(Object.keys(syncedNode.localActions).length > 1 && syncedNode.localActions.delete) {
        delete syncedNode.localActions.delete;
      }
  
      syncDb.update(syncedNode._id, syncedNode, (err, affected) => {
        if(err) return callback(err);
        callback(null, syncedNode, oldNodePath);
      });
    }
docs: Detects changes for a certain nod (rename, move, content changed)
  Sets the necessary localActions in the database.
  
  @param {Object} name - name of the current node
  @param {string} dirPath - parent directory of curent node
  @param {string|undefined} oldDirPath - parent path of this node after the last sync. undefined for root node
  @param {Object} stat - fs.lstst for curent node
  @param {Object} syncedNode - current db representation of node
  @param {Function} callback - callback function
  @returns {void} - no return value