Fix service folder resolution path (#3412)

Signed-off-by: Kai Kreuzer <kai@openhab.org>
pull/3413/head
Kai Kreuzer 2023-03-02 07:39:59 +01:00 committed by GitHub
parent 9778e6cc74
commit 48c44a04d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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")) {