From 6d6250eb6318c33d019220c7c4a558c36b5745fb Mon Sep 17 00:00:00 2001 From: J-N-K Date: Tue, 27 Sep 2022 18:32:19 +0200 Subject: [PATCH] [transformation] Add swp to ignored extensions in FileTransformationProvider (#3094) Signed-off-by: Jan N. Klug --- .../org/openhab/core/transform/FileTransformationProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.core.transform/src/main/java/org/openhab/core/transform/FileTransformationProvider.java b/bundles/org.openhab.core.transform/src/main/java/org/openhab/core/transform/FileTransformationProvider.java index 221258476fb..354a8536c17 100644 --- a/bundles/org.openhab.core.transform/src/main/java/org/openhab/core/transform/FileTransformationProvider.java +++ b/bundles/org.openhab.core.transform/src/main/java/org/openhab/core/transform/FileTransformationProvider.java @@ -47,7 +47,7 @@ public class FileTransformationProvider extends AbstractWatchService implements TransformationProvider { private static final WatchEvent.Kind[] WATCH_EVENTS = { StandardWatchEventKinds.ENTRY_CREATE, StandardWatchEventKinds.ENTRY_DELETE, StandardWatchEventKinds.ENTRY_MODIFY }; - private static final Set IGNORED_EXTENSIONS = Set.of("txt"); + private static final Set IGNORED_EXTENSIONS = Set.of("txt", "swp"); private static final Pattern FILENAME_PATTERN = Pattern .compile("(?.+?)(_(?[a-z]{2}))?\\.(?[^.]*)$"); private static final Path TRANSFORMATION_PATH = Path.of(OpenHAB.getConfigFolder(),