Ignore:
Timestamp:
2017-09-14T15:09:01+02:00 (7 years ago)
Author:
bastiK
Message:

see #15229 - add parameter to base directory methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/CachedFile.java

    r12855 r12856  
    277277                return null;
    278278            } else if (name.startsWith("josmdir://")) {
    279                 cacheFile = new File(Config.getDirs().getUserDataDirectory(), name.substring("josmdir://".length()));
     279                cacheFile = new File(Config.getDirs().getUserDataDirectory(false), name.substring("josmdir://".length()));
    280280            } else if (name.startsWith("josmplugindir://")) {
    281281                cacheFile = new File(Main.pref.getPluginsDirectory(), name.substring("josmplugindir://".length()));
     
    448448        }
    449449        if (destDir == null) {
    450             destDir = Config.getDirs().getCacheDirectory().getPath();
     450            destDir = Config.getDirs().getCacheDirectory(true).getPath();
    451451        }
    452452
Note: See TracChangeset for help on using the changeset viewer.