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

This commit is contained in:
CalDescent 2021-10-06 19:50:32 +01:00
parent 4dff91a0e5
commit 045026431b

View File

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