bundles/org.eclipse.orion.client.core/web/orion/fileClient.js
function(targetLocation, options, parentLocation) {
			//return _doServiceCall(this._getService(targetLocation), "remoteImport", arguments); //$NON-NLS-1$
			return _doServiceCall(this._getService(targetLocation), "remoteImport", arguments).then(function(result){ //$NON-NLS-0$
				if(this.isEventFrozen()) {
					if(!this._frozenEvent.copied) {
						this._frozenEvent.copied = [];
					}
					this._frozenEvent.copied.push({target: parentLocation});
				} else {
					this.dispatchEvent({ type: "Changed", copied: [{target: parentLocation}]}); //$NON-NLS-0$
				}
				return result;
			}.bind(this));
		}
function(targetLocation, options, parentLocation) {
			//return _doServiceCall(this._getService(targetLocation), "remoteImport", arguments); //$NON-NLS-1$
			return _doServiceCall(this._getService(targetLocation), "remoteImport", arguments).then(function(result){ //$NON-NLS-0$
				if(this.isEventFrozen()) {
					if(!this._frozenEvent.copied) {
						this._frozenEvent.copied = [];
					}
					this._frozenEvent.copied.push({target: parentLocation});
				} else {
					this.dispatchEvent({ type: "Changed", copied: [{target: parentLocation}]}); //$NON-NLS-0$
				}
				return result;
			}.bind(this));
		}
function ( targetLocation , options , parentLocation ) { //return _doServiceCall(this._getService(targetLocation), "remoteImport", arguments); //$NON-NLS-1$ return _doServiceCall ( this . _getService ( targetLocation ) , "remoteImport" , arguments ) . then ( function ( result ) { //$NON-NLS-0$ if ( this . isEventFrozen ( ) ) { if ( ! this . _frozenEvent . copied ) { this . _frozenEvent . copied = [ ] ; } this . _frozenEvent . copied . push ( { target : parentLocation } ) ; } else { this . dispatchEvent ( { type : "Changed" , copied : [ { target : parentLocation } ] } ) ; //$NON-NLS-0$ } return result ; } . bind ( this ) ) ; }
Imports file and directory contents from another server

@param {String} targetLocation The location of the folder to import into
@param {Object} options An object specifying the import parameters
@public
@return {Deferred} A deferred for chaining events after the import completes
Imports file and directory contents from another server