From 6c27885702aefb8760780f2dcbcedda873c4b81f Mon Sep 17 00:00:00 2001 From: Arksine Date: Mon, 17 May 2021 19:52:07 -0400 Subject: [PATCH] file_manager: send "root_update" notification for all registered directories This includes non mutable directories such as "config_examples" and "docs". Signed-off-by: Eric Callahan --- moonraker/components/file_manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/moonraker/components/file_manager.py b/moonraker/components/file_manager.py index c221973..1d88ee0 100644 --- a/moonraker/components/file_manager.py +++ b/moonraker/components/file_manager.py @@ -131,6 +131,10 @@ class FileManager: if root in FULL_ACCESS_ROOTS: # Refresh the file list and add watches self.inotify_handler.add_root_watch(root, path) + else: + IOLoop.current().spawn_callback( + self.inotify_handler.notify_filelist_changed, + "root_update", root, path) return True def get_sd_directory(self):