Browse Source

Create a cleaner base directory path, without the "/./"

v2.0-beta
CalDescent 3 years ago
parent
commit
045026431b
  1. 2
      src/main/java/org/qortal/repository/Bootstrap.java

2
src/main/java/org/qortal/repository/Bootstrap.java

@ -468,7 +468,7 @@ public class Bootstrap {
} }
private Path createTempDirectory() throws IOException { private Path createTempDirectory() throws IOException {
String baseDir = Paths.get(".", "tmp").toAbsolutePath().toString(); String baseDir = Paths.get(".", "tmp").toFile().getCanonicalPath();
String identifier = UUID.randomUUID().toString(); String identifier = UUID.randomUUID().toString();
Path tempDir = Paths.get(baseDir, identifier); Path tempDir = Paths.get(baseDir, identifier);
Files.createDirectories(tempDir); Files.createDirectories(tempDir);

Loading…
Cancel
Save