lib/entry.js
function rename(newName) {
      newName = newName.replace(/[\.\/]/g, '');
      if (this.isRoot()) {
        this._name = newName;
      } else {
        var newPath = [this.parent.path(), newName].filter(function (e) {
          return e !== '';
        }).join('.');
        this.moveTo(newPath);
      }
    }
function rename(newName) {
      newName = newName.replace(/[\.\/]/g, '');
      if (this.isRoot()) {
        this._name = newName;
      } else {
        var newPath = [this.parent.path(), newName].filter(function (e) {
          return e !== '';
        }).join('.');
        this.moveTo(newPath);
      }
    }
function rename ( newName ) { newName = newName . replace ( / [\.\/] / g , '' ) ; if ( this . isRoot ( ) ) { this . _name = newName ; } else { var newPath = [ this . parent . path ( ) , newName ] . filter ( function ( e ) { return e !== '' ; } ) . join ( '.' ) ; this . moveTo ( newPath ) ; } }
Rename an Entry. This can also mean to move the entry from one point to another in the tree
@param {string} newName the new name/path for the renamed entry
Rename an Entry . This can also mean to move the entry from one point to another in the tree