From 35d03db4c5240bfffa84bc3ab313ad6be51e18b2 Mon Sep 17 00:00:00 2001 From: Jesper Gravgaard Date: Mon, 2 Nov 2020 19:03:05 +0100 Subject: [PATCH] Now skipping postponed folders that cannot be deleted. --- src/main/java/dk/camelot64/kickc/TmpDirManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/dk/camelot64/kickc/TmpDirManager.java b/src/main/java/dk/camelot64/kickc/TmpDirManager.java index 2c436c41e..a1e412ba2 100644 --- a/src/main/java/dk/camelot64/kickc/TmpDirManager.java +++ b/src/main/java/dk/camelot64/kickc/TmpDirManager.java @@ -84,8 +84,7 @@ public class TmpDirManager { Path todoPath = new File(todoPathAbs).toPath(); boolean success = deleteTmpDir(todoPath); if(!success) { - failedDirs.add(todoPath); - //System.out.println("Cannot delete postponed temporary folder - postponing again " + todoPathAbs); + System.err.println("Cannot delete postponed temporary folder - skipping " + todoPathAbs); } else { //System.out.println("Successfully deleted postponed temporary folder " + todoPathAbs); }