protected JsTreeNodeData populateTreeNodeData(FileObject root, FileObject file) throws FileSystemException {
		boolean noChild = true;
		FileType type = file.getType();
		if (type.equals(FileType.FOLDER) || type.equals(FileType.FILE_OR_FOLDER)){
			noChild = file.getChildren().length == 0;
		}
		String relativePath = root.getName().getRelativeName(file.getName());
		return populateTreeNodeData(file, noChild, relativePath);
	}
protected JsTreeNodeData populateTreeNodeData ( FileObject root , FileObject file ) throws FileSystemException { boolean noChild = true ; FileType type = file . getType ( ) ; if ( type . equals ( FileType . FOLDER ) || type . equals ( FileType . FILE_OR_FOLDER ) ) { noChild = file . getChildren ( ) . length == 0 ; } String relativePath = root . getName ( ) . getRelativeName ( file . getName ( ) ) ; return populateTreeNodeData ( file , noChild , relativePath ) ; }
Populate a node.
@param root		Relative root directory.
@param file		The file object.
@return	The node data structure which presents the file.
@throws FileSystemException