From de4403e82b8834db2c1a61abc14c0901d28b367d Mon Sep 17 00:00:00 2001 From: "Vladimir.Orlov" Date: Fri, 7 Apr 2017 16:32:27 +0300 Subject: [PATCH] Updater: fixed the case when symbolic links are not deleted. IDEA-170514 Codesign is broken after AppCode 2016.3.3 -> AppCode 2017.1 patch update --- updater/src/com/intellij/updater/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updater/src/com/intellij/updater/Utils.java b/updater/src/com/intellij/updater/Utils.java index 3ba24502a41d..9ddc5f528c02 100644 --- a/updater/src/com/intellij/updater/Utils.java +++ b/updater/src/com/intellij/updater/Utils.java @@ -73,7 +73,7 @@ public class Utils { public static void delete(File file) throws IOException { Path start = file.toPath(); - if (Files.exists(start)) { + if (Files.exists(start, LinkOption.NOFOLLOW_LINKS)) { Files.walkFileTree(start, new SimpleFileVisitor() { @Override public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {