mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
Fix service folder resolution path (#3412)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
+1
-1
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user