From: Jussi Koskela Date: Tue, 7 Mar 2017 13:54:56 +0000 (+0200) Subject: Fix incorrect filtering condition in file deletion X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=74ca4810ae9ce92916dea3d0ecf53e66ba84edcc;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()); }