From: Jussi Koskela Date: Tue, 7 Mar 2017 13:54:56 +0000 (+0200) Subject: Fix incorrect filtering condition in file deletion X-Git-Tag: v1.28.0~67 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=e146f837494c09725fcb93f708d062a723c6f0fa;p=simantics%2Fplatform.git Fix incorrect filtering condition in file deletion refs #7074 Change-Id: I3421b8b27ab8fb27afdf105ade58894e21c5bd71 --- 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()); }