]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Fix incorrect filtering condition in file deletion 48/348/2
authorJussi Koskela <jussi.koskela@semantum.fi>
Tue, 7 Mar 2017 13:54:56 +0000 (15:54 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 7 Mar 2017 14:26:37 +0000 (16:26 +0200)
refs #7074

Change-Id: I3421b8b27ab8fb27afdf105ade58894e21c5bd71

bundles/org.simantics.utils/src/org/simantics/utils/FileUtils.java

index b794c9360473a360d973ba5826a3d96eef942a62..b3ec46a30c656b2c19fa626785696620b963f1f8 100644 (file)
@@ -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());
                 }