@Override
    public Object getChild(Object node, int index)
    {
        File[] children = ((FileWrapper) node).getF().listFiles();
        ArrayList<File> childs = new ArrayList<File>();
        for (File f : children)
        {
            if (this.showFiles)
            {
                childs.add(f);
            } else if (f.isDirectory())
            {
                childs.add(f);
            }

        }
        return new FileWrapper(childs.get(index));
    }