Changeset 7282


Ignore:
Timestamp:
2004-05-05T15:15:58+12:00 (20 years ago)
Author:
kjdon
Message:

deleted findConfigFile cos its not used any more, and its dumb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/util/Utility.java

    r7281 r7282  
    261261    }
    262262
    263     /** Given a starting directory, searches for the collect.cfg file and returns it if found.
    264      * @return The collect.cfg File or null if not found.
    265      */
    266     /*    static final public File findConfigFile(File start) {
    267     if(start == null) {
    268         return null;
    269     }
    270     // See if the collect.cfg files here.
    271     File collect_cfg = new File(start, "collect.cfg");
    272     if(collect_cfg.exists()) {
    273         return collect_cfg;
    274     }
    275     // Search for the existance of collect.cfg in a etc directory.
    276     File etc_dir = new File(start, "etc" + File.separator + "collect.cfg");
    277     if(etc_dir.exists()) {
    278         return etc_dir;
    279     }
    280     // Otherwise search this directories parent if its not null.
    281     return findConfigFile(start.getParentFile());
    282     }*/
    283 
    284263    /** Convert a long, detailing the length of a file in bytes, into a nice human readable string using b, kb, Mb and Gb. */
    285264    static final public String BYTE_SUFFIX = " b";
Note: See TracChangeset for help on using the changeset viewer.