Changeset 4830 in josm


Ignore:
Timestamp:
2012-01-20T20:47:02+01:00 (8 years 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.