code: private void listFolder(final StructrShellCommand parent, final Iterable<AbstractFile> folder) throws FrameworkException, IOException {
  
  		boolean hasContents = false;
  
  		for (final AbstractFile child : folder) {
  
  			if (parent.isAllowed(child, Permission.read, false)) {
  
  				hasContents = true;
  
  				if (child instanceof Folder) {
  
  					term.setBold(true);
  					term.setTextColor(4);
  					term.print(child.getName() + "  ");
  					term.setTextColor(7);
  					term.setBold(false);
  
  				} else {
  
  					term.print(child.getName() + "  ");
  				}
  			}
  		}
  
  		if (hasContents) {
  			term.println();
  		}
  	}
docs: ----- private methods -----