fs_query: add directory entries to listing report

Fixes #3631
This commit is contained in:
Norman Feske 2020-01-31 21:04:41 +01:00 committed by Christian Helmuth
parent 52e582132f
commit 60edfa4d77
1 changed files with 6 additions and 0 deletions

View File

@ -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); });
});