@Override
    public int getIndexOfChild(Object node, Object child)
    {
        File[] children = ((FileWrapper) node).getF().listFiles();
        ArrayList<File> dirs = new ArrayList<File>();
        for (File f : children)
        {
            if (f.isDirectory())
                dirs.add(f);
        }
        return dirs.indexOf(child);
    }