mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8294193: Files.createDirectories throws FileAlreadyExistsException for a symbolic link whose target is an existing directory
Reviewed-by: alanb
This commit is contained in:
parent
3675f4c2af
commit
169a5d48af
3 changed files with 127 additions and 37 deletions
|
@ -805,7 +805,7 @@ public final class Files {
|
|||
try {
|
||||
createDirectory(dir, attrs);
|
||||
} catch (FileAlreadyExistsException x) {
|
||||
if (!isDirectory(dir, LinkOption.NOFOLLOW_LINKS))
|
||||
if (!isDirectory(dir))
|
||||
throw x;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue