Changeset 8088


Ignore:
Timestamp:
2004-08-30T12:22:48+12:00 (20 years ago)
Author:
mdewsnip
Message:

Fixed a bug where assigned metadata would be stuffed up on Windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/msm/MetadataXMLFileManager.java

    r7744 r8088  
    361361        }
    362362        if(new_metadata != null) {
    363         // File level
    364        
     363        // Convert relative paths into absolute paths
    365364        String filename = file.toString();
    366         if (!filename.startsWith(File.separator)) {
     365        if ((Utility.isWindows() == true && filename.charAt(1) != ':') ||
     366            (Utility.isWindows() == false && !filename.startsWith(File.separator))) {
    367367            String collection_dir = Utility.getCollectionDir();
    368368            File full_file = new File(collection_dir + filename);
     
    370370        }
    371371
     372        // File level
    372373        if(file.isFile()) {
    373374            // System.err.println("Calling metadata_xml.addMetadata(" + new_metadata + ")...");
Note: See TracChangeset for help on using the changeset viewer.