Changeset 22467

Show
Ignore:
Timestamp:
21.07.2010 14:39:49 (10 years ago)
Author:
ak19
Message:

The trailing slash returned by the updated CollectionManager?.getCollectDirectory() was causing problems when running import.pl and such scripts

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r22454 r22467  
    18101810    // used as arg in the perl scripts 
    18111811    private String getCollectDirectory() { 
    1812     return Gatherer.getCollectDirectoryPath(); 
     1812    String collect_dir = Gatherer.getCollectDirectoryPath();     
     1813    return collect_dir.substring(0, collect_dir.length()-1); // remove trailing slash 
    18131814     
    18141815    // the following will stick any colgroup at the end of the collect directory, making it no longer