modules/orionode/lib/shared/tree.js
function loadFile(req, res) {
		if (req.user) {
			// User access is not allowed. This method is only for the collab server
			writeError(403, res, 'Forbidden');
			return;
		}
		var relativeFilePath = req.params['0'];
		var hubid = req.params['hubId'];

		return sharedProjects.getProjectPathFromHubID(hubid)
		.then(function(filepath) {
			if (!filepath) {
				writeError(404, res, 'Session not found: ' + hubid);
				return;
			}
			getTree(req, res);
		});
	}
function loadFile(req, res) {
		if (req.user) {
			// User access is not allowed. This method is only for the collab server
			writeError(403, res, 'Forbidden');
			return;
		}
		var relativeFilePath = req.params['0'];
		var hubid = req.params['hubId'];

		return sharedProjects.getProjectPathFromHubID(hubid)
		.then(function(filepath) {
			if (!filepath) {
				writeError(404, res, 'Session not found: ' + hubid);
				return;
			}
			getTree(req, res);
		});
	}
function loadFile ( req , res ) { if ( req . user ) { // User access is not allowed. This method is only for the collab server writeError ( 403 , res , 'Forbidden' ) ; return ; } var relativeFilePath = req . params [ '0' ] ; var hubid = req . params [ 'hubId' ] ; return sharedProjects . getProjectPathFromHubID ( hubid ) . then ( function ( filepath ) { if ( ! filepath ) { writeError ( 404 , res , 'Session not found: ' + hubid ) ; return ; } getTree ( req , res ) ; } ) ; }
Get request from websocket server to load a file. Requires project HUBID and relative file path.
Get request from websocket server to load a file . Requires project HUBID and relative file path .