Merge pull request #5972 from eatkins/symlink-target

Check if target is directory before creating
This commit is contained in:
Ethan Atkins 2020-10-13 20:02:51 -07:00 committed by GitHub
commit 8e4ec1697b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -287,8 +287,8 @@ public class BootServerSocket implements AutoCloseable {
final Path base = configuration.baseDirectory().toPath().toRealPath(); final Path base = configuration.baseDirectory().toPath().toRealPath();
final Path target = base.resolve("project").resolve("target"); final Path target = base.resolve("project").resolve("target");
if (!isWindows) { if (!isWindows) {
if (!Files.isDirectory(target)) Files.createDirectories(target);
socketFile = Paths.get(socketLocation(base)); socketFile = Paths.get(socketLocation(base));
Files.createDirectories(target);
} else { } else {
socketFile = null; socketFile = null;
} }