code: function(sourceLocation, targetLocation, targetName) {
  			var sourceService = this._getService(sourceLocation);
  			var targetService = this._getService(targetLocation);
  
  			if (sourceService === targetService) {
  				//return _doServiceCall(sourceService, "moveFile", arguments);
  				return _doServiceCall(sourceService, "moveFile", arguments).then(function(result){ //$NON-NLS-0$
  					if(this.isEventFrozen()) {
  						if(!this._frozenEvent.moved) {
  							this._frozenEvent.moved = [];
  						}
  						this._frozenEvent.moved.push({source: sourceLocation, target: targetLocation, result: result});
  					} else {
  						this.dispatchEvent({ type: "Changed", moved: [{source: sourceLocation, target: targetLocation, result: result}]}); //$NON-NLS-0$
  					}
  					return result;
  				}.bind(this));
  			}
  
  			var isDirectory = sourceLocation[sourceLocation.length -1] === "/";
  			var target = targetLocation;
  
  			if (target[target.length -1] !== "/") {
  				target += "/";
  			}
  
  			if (targetName) {
  				target += encodeURIComponent(targetName);
  			} else {
  				var temp = sourceLocation;
  				if (isDirectory) {
  					temp = temp.substring(0, temp.length - 1);
  				}
  				target += temp.substring(temp.lastIndexOf("/")+1);
  			}
  
  			if (isDirectory && target[target.length -1] !== "/") {
  				target += "/";
  			}
  
  			return _copy(sourceService, sourceLocation, targetService, target).then(function() {
  				return _doServiceCall(sourceService, "deleteFile", [sourceLocation]); //$NON-NLS-1$
  			});
  
  		}
docs: Moves a file or directory.
  @param {String} sourceLocation The location of the file or directory to move.
  @param {String} targetLocation The location of the target folder.
  @param {String} targetName The name of the destination file or directory in the case of a rename
  @public
  @returns {Deferred} A deferred that will move the given file to its new location