bundles/org.eclipse.orion.client.core/web/orion/fileUtils.js
function isAtRoot(path) {
		if (!path) {
			return false;
		}
		if (path === "/workspace") {
			return true; // sad but true
		}
		var pathUrl = new URL(path, window.location.href);
		return pathUrl.href.indexOf(_workspaceUrlHref) === 0; //$NON-NLS-0$
	}
function isAtRoot(path) {
		if (!path) {
			return false;
		}
		if (path === "/workspace") {
			return true; // sad but true
		}
		var pathUrl = new URL(path, window.location.href);
		return pathUrl.href.indexOf(_workspaceUrlHref) === 0; //$NON-NLS-0$
	}
function isAtRoot ( path ) { if ( ! path ) { return false ; } if ( path === "/workspace" ) { return true ; // sad but true } var pathUrl = new URL ( path , window . location . href ) ; return pathUrl . href . indexOf ( _workspaceUrlHref ) === 0 ; //$NON-NLS-0$ }
Determines if the path represents the workspace root
@name orion.util#isAtRoot
@function
Determines if the path represents the workspace root