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
This commit is contained in:
Vladimir.Orlov
2017-04-07 16:32:27 +03:00
parent f3259b8405
commit de4403e82b
+1 -1
View File
@@ -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<Path>() {
@Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {