bundles/org.eclipse.orion.client.ui/web/plugins/filePlugin/fileImpl.js
function(sourceLocation, options) {
			var headerData = {
				"Orion-Version": "1"
			};
			if (options.OptionHeader) {
				headerData["X-Xfer-Options"] = options.OptionHeader;
				delete options.OptionHeader;
			}
			return sftpOperation("POST", sourceLocation, {
				headers: headerData,
				data: JSON.stringify(options),
				timeout: 15000
			}).then(function(result) {
				if (this.makeAbsolute) {
					_normalizeLocations(result);
				}
				return result;
			}.bind(this));
		}
function(sourceLocation, options) {
			var headerData = {
				"Orion-Version": "1"
			};
			if (options.OptionHeader) {
				headerData["X-Xfer-Options"] = options.OptionHeader;
				delete options.OptionHeader;
			}
			return sftpOperation("POST", sourceLocation, {
				headers: headerData,
				data: JSON.stringify(options),
				timeout: 15000
			}).then(function(result) {
				if (this.makeAbsolute) {
					_normalizeLocations(result);
				}
				return result;
			}.bind(this));
		}
function ( sourceLocation , options ) { var headerData = { "Orion-Version" : "1" } ; if ( options . OptionHeader ) { headerData [ "X-Xfer-Options" ] = options . OptionHeader ; delete options . OptionHeader ; } return sftpOperation ( "POST" , sourceLocation , { headers : headerData , data : JSON . stringify ( options ) , timeout : 15000 } ) . then ( function ( result ) { if ( this . makeAbsolute ) { _normalizeLocations ( result ) ; } return result ; } . bind ( this ) ) ; }
Exports file and directory contents to another server

@param {String} sourceLocation The location of the folder to export from
@param {Object} options An object specifying the export parameters
@return A deferred for chaining events after the export completes
Exports file and directory contents to another server