Changeset 32790 in osm for applications/editors
- Timestamp:
- 2016-08-09T02:00:51+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/util/OdUtils.java
r32545 r32790 5 5 import java.io.FilenameFilter; 6 6 import java.io.IOException; 7 import java.nio.file.Files; 7 8 import java.util.ArrayList; 8 9 import java.util.List; … … 87 88 88 89 public static final File createTempDir() throws IOException { 89 final File temp = File.createTempFile(TEMP_DIR_PREFIX, Long.toString(System.nanoTime())); 90 91 if (!temp.delete()) { 92 throw new IOException("Could not delete temp file: " + temp.getAbsolutePath()); 93 } 94 95 if (!temp.mkdir()) { 96 throw new IOException("Could not create temp directory: " + temp.getAbsolutePath()); 97 } 98 99 return temp; 90 return Files.createTempDirectory(TEMP_DIR_PREFIX).toFile(); 100 91 } 101 92
Note:
See TracChangeset
for help on using the changeset viewer.