From bc2e34e28d6aec87d9c5537727094814ef327e67 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Wed, 14 Dec 2022 18:25:34 +0100 Subject: [PATCH] Ignore .lck files during backup --- .../lib/paper/modules/backup/CompressWorkdirProcess.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/modules/backup/CompressWorkdirProcess.java b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/modules/backup/CompressWorkdirProcess.java index 8674493..0957329 100644 --- a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/modules/backup/CompressWorkdirProcess.java +++ b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/modules/backup/CompressWorkdirProcess.java @@ -42,6 +42,8 @@ public class CompressWorkdirProcess extends CompressProcess { return true; if (new File(getSourceDir(), "logs").equals(file)) return true; + if (file.isFile() && file.getName().endsWith(".lck")) + return true; return false; }