From 60edfa4d7777981eea7ec23dcfc8ccc346a5e3a0 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Fri, 31 Jan 2020 21:04:41 +0100 Subject: [PATCH] fs_query: add directory entries to listing report Fixes #3631 --- repos/gems/src/app/fs_query/main.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/repos/gems/src/app/fs_query/main.cc b/repos/gems/src/app/fs_query/main.cc index 28b93778f9..9bfd197910 100644 --- a/repos/gems/src/app/fs_query/main.cc +++ b/repos/gems/src/app/fs_query/main.cc @@ -128,6 +128,12 @@ struct Fs_query::Watched_directory { xml.node("dir", [&] () { xml.attribute("path", _rel_path); + + _dir.for_each_entry([&] (Directory::Entry const &entry) { + if (entry.dir()) + xml.node("dir", [&] () { + xml.attribute("name", entry.name()); }); }); + _files.for_each([&] (Watched_file const &file) { file.gen_query_response(xml, query, _alloc, _dir); }); });