Fix service folder resolution path (#3412)
Signed-off-by: Kai Kreuzer <kai@openhab.org>pull/3413/head
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")) {
|
||||
|
|
Loading…
Reference in New Issue