Changeset 8856


Ignore:
Timestamp:
2004-12-17T16:56:25+13:00 (19 years ago)
Author:
mdewsnip
Message:

Now only creates one FileNode for each child, rather than having one for each unfiltered child and another for each filtered child.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/file/FileNode.java

    r8851 r8856  
    275275        // Add the files left after filtering to child_nodes
    276276        for (int i = 0; i < files.length; i++) {
    277             FileNode child_node = this.addChildNode(files[i]);
     277            // Use the FileNode object in child_nodes_unfiltered rather than creating another
    278278            for (int j = 0; j < child_nodes_unfiltered.size(); j++) {
    279             if (((FileNode) child_nodes_unfiltered.get(j)).equals(child_node)) {
     279            if (((FileNode) child_nodes_unfiltered.get(j)).getFile().equals(files[i])) {
    280280                child_nodes.add(child_nodes_unfiltered.get(j));
     281                break;
    281282            }
    282283            }
Note: See TracChangeset for help on using the changeset viewer.