Fix service folder resolution path (#3412)

Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
Kai Kreuzer
2023-03-02 07:39:59 +01:00
committed by GitHub
parent 9778e6cc74
commit 48c44a04d8
@@ -64,7 +64,7 @@ public class ConfigDispatcherFileWatcher implements WatchService.WatchEventListe
@Override
public void processWatchEvent(WatchService.Kind kind, Path path) {
Path fullPath = watchService.getWatchPath().resolve(path);
Path fullPath = watchService.getWatchPath().resolve(SERVICES_FOLDER).resolve(path);
try {
if (kind == WatchService.Kind.CREATE || kind == WatchService.Kind.MODIFY) {
if (!Files.isHidden(fullPath) && fullPath.toString().endsWith(".cfg")) {