agave-files/files-core/src/main/java/org/iplantc/service/io/permissions/PermissionManager.java
/**
	 * Checks whether path is under the current root directory of the system 
	 * assigned to the current PermissionManager. The system root directory
	 * is defined as, system.storageConfig.rootDir
	 *
	 * @param systemAbsolutePath absolute path on remote system
	 * @return true if path is relative to system root directory
	 */
Checks whether path is under the current root directory of the system
assigned to the current PermissionManager. The system root directory
is defined as, system.storageConfig.rootDir

@param systemAbsolutePath absolute path on remote system
@return true if path is relative to system root directory
Checks whether path is under the current root directory of the system assigned to the current PermissionManager . The system root directory is defined as system . storageConfig . rootDir @param systemAbsolutePath absolute path on remote system @return true if path is relative to system root directory
public boolean isUnderSystemRootDir(String systemAbsolutePath)
	{
		String rootDir;
		try {
			if (remoteDataClient == null) {
				rootDir = remoteSystem.getRemoteDataClient().resolvePath("/");
			} else {
				rootDir = remoteDataClient.resolvePath("/");
			}
		} catch (Exception e) {
			return false;
		}
		return StringUtils.startsWithIgnoreCase(cleanPath(systemAbsolutePath) , rootDir);
	}
public boolean isUnderSystemRootDir ( String systemAbsolutePath ) { String rootDir ; try { if ( remoteDataClient == null ) { rootDir = remoteSystem . getRemoteDataClient ( ) . resolvePath ( "/" ) ; } else { rootDir = remoteDataClient . resolvePath ( "/" ) ; } } catch ( Exception e ) { return false ; } return StringUtils . startsWithIgnoreCase ( cleanPath ( systemAbsolutePath ) , rootDir ) ; }
Checks whether path is under the current root directory of the system
 assigned to the current PermissionManager.
Checks whether path is under the current root directory of the system assigned to the current PermissionManager .