From 74ca4810ae9ce92916dea3d0ecf53e66ba84edcc Mon Sep 17 00:00:00 2001 From: Jussi Koskela Date: Tue, 7 Mar 2017 15:54:56 +0200 Subject: [PATCH] Fix incorrect filtering condition in file deletion refs #7074 Change-Id: I3421b8b27ab8fb27afdf105ade58894e21c5bd71 --- .../org.simantics.utils/src/org/simantics/utils/FileUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.simantics.utils/src/org/simantics/utils/FileUtils.java b/bundles/org.simantics.utils/src/org/simantics/utils/FileUtils.java index b794c9360..b3ec46a30 100644 --- a/bundles/org.simantics.utils/src/org/simantics/utils/FileUtils.java +++ b/bundles/org.simantics.utils/src/org/simantics/utils/FileUtils.java @@ -492,7 +492,7 @@ public class FileUtils { } } } else if (dir.exists()) { - if (filter.contains(dir.getAbsolutePath())) { + if (!filter.contains(dir.getAbsolutePath())) { if (!dir.delete()) { throw new IOException("Could not delete file: " + dir.getAbsolutePath()); } -- 2.47.1