Changeset 4830 in josm


Ignore:
Timestamp:
Jan 20, 2012 8:47:02 PM (16 months ago)
Author:
bastiK
Message:

automatically migrate wms cache from old to new folder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/WmsCache.java

    r4829 r4830  
    101101            cPath = Main.pref.getCacheDirectory() + File.separator + cPath; 
    102102        } 
     103        // Migrate to new cache directory. Remove 2012-06 
     104        { 
     105            File oldPath = new File(Main.pref.getPreferencesDirFile(), "wms-cache"); 
     106            File newPath = new File(cPath); 
     107            if (oldPath.exists() && !newPath.exists()) { 
     108                oldPath.renameTo(newPath); 
     109            } 
     110        } 
    103111        return cPath; 
    104112    } 
Note: See TracChangeset for help on using the changeset viewer.