public List<ResourceNode> ls(String sessionID,String path,boolean doRecurse) throws DirectoryNotFoundException {
  ResourceNode startNode=null;
  startNode=getStartNode(sessionID,path);
  List<ResourceNode> entries=new LinkedList<ResourceNode>();
  if (!startNode.isContainer()) {
    entries.add(startNode);
    return entries;
  }
  getEntries(startNode,entries,doRecurse);
  return entries;
}

public List < ResourceNode > ls ( String sessionID , String path , boolean doRecurse ) throws DirectoryNotFoundException { ResourceNode startNode = null ; startNode = getStartNode ( sessionID , path ) ; List < ResourceNode > entries = new LinkedList < ResourceNode > ( ) ; if ( ! startNode . isContainer ( ) ) { entries . add ( startNode ) ; return entries ; } getEntries ( startNode , entries , doRecurse ) ; return entries ; }
returns a list of resource nodes according to the path passed in .
