Re: Listing a directory using the file system session

2016-12-16 Thread Martijn Verschoor
Dear Genode community, Christian, Emery, NobodyIII, thanks for your suggestions. I see the benefit for using the VFS library, but for the component I’m working on right now, using a file system session directly is more appropriate. Therefore I implemented the functionality of listing the

Re: Listing a directory using the file system session

2016-12-15 Thread Nobody III
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:

Re: Listing a directory using the file system session

2016-12-15 Thread Emery Hemingway
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

Re: Listing a directory using the file system session

2016-12-15 Thread Christian Helmuth
Hello Martijn, On Thu, Dec 15, 2016 at 01:42:45PM +0100, Martijn Verschoor wrote: > 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

Listing a directory using the file system session

2016-12-15 Thread Martijn Verschoor
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