@Override
    public int getChildCount(Object node)
    {
        int i = 0;
        File d = ((FileWrapper) node).getF();
        for (File f : d.listFiles())
        {
            if (this.showFiles)
            {
                ++i;
            } else if (f.isDirectory())
            {
                ++i;
            }
        }
        return i;
    }