public void displayNode(TreeNode node, int level, boolean isLastChild) {
    if (maxDepth != 0 && maxDepth > level) {
      if (node.isDir()) {
        if (node.getChildrenSize() > 1) {
          prefix.addMarker(level+1);
        }
        String prefixString = prefix.getPrefix(level, isLastChild);
        System.out.print(prefixString + node.getPath());
        if (displaySize) {
          System.out.println( " [ "+getHumanReadableSize(node.getSize())+" ]");
        } else {
          System.out.println();
        }
        if (node.hasChildren()) {
          boolean lastChild;
          int counter = 0;
          for (TreeNode subTree : node.getChildren()) {
            lastChild = ((node.getChildrenSize()-1) == counter);
            displayNode(subTree, level + 1, lastChild);
            counter++;
          }
        }
      }
    }
  }