Changeset 14138 in josm for trunk/src/org/openstreetmap/josm/io/CachedFile.java
- Timestamp:
- 2018-08-12T02:21:19+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/CachedFile.java
r14119 r14138 34 34 import org.openstreetmap.josm.tools.Logging; 35 35 import org.openstreetmap.josm.tools.Pair; 36 import org.openstreetmap.josm.tools.PlatformManager; 36 37 import org.openstreetmap.josm.tools.Utils; 37 38 … … 521 522 activeConnection = null; 522 523 localFile = new File(destDir, localPath); 523 if ( Main.platform.rename(destDirFile, localFile)) {524 if (PlatformManager.getPlatform().rename(destDirFile, localFile)) { 524 525 Config.getPref().putList(prefKey, 525 526 Arrays.asList(Long.toString(System.currentTimeMillis()), localFile.toString())); … … 549 550 // Windows doesn't support paths longer than 260, leave 5 chars as safe buffer, 4 will be used by ".tmp" 550 551 // TODO: what about filename size on other systems? 255? 551 if (directory.length() > 191 && Main.isPlatformWindows()) {552 if (directory.length() > 191 && PlatformManager.isPlatformWindows()) { 552 553 // digest length + name prefix == 64 553 554 // 255 - 64 = 191
Note:
See TracChangeset
for help on using the changeset viewer.