code: private UfsStatus[] trimIndirect(UfsStatus[] children) {
      List<UfsStatus> childrenList = new ArrayList<>();
      for (UfsStatus child : children) {
        int index = child.getName().indexOf(AlluxioURI.SEPARATOR);
        if (index < 0 || index == child.getName().length()) {
          childrenList.add(child);
        }
      }
      return childrenList.toArray(new UfsStatus[childrenList.size()]);
    }
docs: Remove indirect children from children list returned from recursive listing.
  
  @param children list from recursive listing
  @return trimmed list, null if input is null