I have written a file manager for Genode, so that could be useful if you don't want to use the VFS system. It's part of my work on a desktop environment, and it's not entirely complete, but it should be fairly usable still. If you want to use that as a starting point, here's a link:
https://github.com/NobodyIII/genode-desktop-environment

Here's the specific file with the _dir() function:
https://github.com/NobodyIII/genode-desktop-environment/blob/master/src/app/file_manager/genodefs.cpp

On Thu, Dec 15, 2016 at 7:32 AM, Emery Hemingway <emery@...261...> wrote:
Hello Martijn,

The File_system client in the VFS library is the only example that I can think of
for reading directory entries. I would recommend using the VFS library rather than
using a File_system session directly, the library is easier to use and this would
give you a lot more power for free, such as merging the same directory present in
multiple File_system sessions.

https://github.com/genodelabs/genode/blob/master/repos/os/src/lib/vfs/fs_file_system.h#L279

Cheers,
Emery Hemingway

On Thu, Dec 15, 2016 at 01:42:45PM +0100, Martijn Verschoor wrote:
> Dear Genode community,
>
> I’m looking for a way to list the files (nodes) in a directory using a file system session. Amongst other, I studied the File_system::Session and file_system/utils.h but cannot find a hook to get started. I see that reading the directory nodes is supported -> this returns the Directory_entry struct with information about the directory itself, but not about the nodes the directory contains (right?). Is there a way retrieve the latter?
>
> Any help is appreciated!
>
> Met vriendelijke groet / kind regards,
>
> Martijn Verschoor
>
> Cyber Security Labs B.V. | Gooimeer 6-31 | 1411 DD Naarden | The Netherlands
> +31 35 631 3253 (office) |  +31 616 014 087 (mobile)
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> genode-main mailing list
> genode-main@...449...2...net
> https://lists.sourceforge.net/lists/listinfo/genode-main
>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
genode-main mailing list
genode-main@...172...net
https://lists.sourceforge.net/lists/listinfo/genode-main