Re: [edk2] Directory/File system traversal example

2014-12-13 Thread John Smith
On Sat, Dec 13, 2014 at 2:16 PM, Andrew Fish wrote: > > > On Dec 13, 2014, at 10:43 AM, John Smith > wrote: > > As a thanks to Thomas, and to pay it forward for everyone who comes after > me, here's a slightly modified compiling version of what he wrote. There > are some parts (like continuously

Re: [edk2] Directory/File system traversal example

2014-12-13 Thread Andrew Fish
> On Dec 13, 2014, at 10:43 AM, John Smith wrote: > > As a thanks to Thomas, and to pay it forward for everyone who comes after me, > here's a slightly modified compiling version of what he wrote. There are some > parts (like continuously re-reading the directory file) which I found > counter

Re: [edk2] Directory/File system traversal example

2014-12-13 Thread John Smith
As a thanks to Thomas, and to pay it forward for everyone who comes after me, here's a slightly modified compiling version of what he wrote. There are some parts (like continuously re-reading the directory file) which I found counter-intuitive and I doubt I would have figured out on my own by readi

Re: [edk2] Directory/File system traversal example

2014-12-11 Thread Thomas Rognon
oops ignore FsHandle parameter in ProcessFiles() On Thu, Dec 11, 2014 at 1:47 PM, Thomas Rognon wrote: > > I was bored and feeling in high spirits, so I wrote some code for you. > Also, I agree it would be nice to have example snippets on the tianocore > website for common tasks. If someone sets

Re: [edk2] Directory/File system traversal example

2014-12-11 Thread Thomas Rognon
I was bored and feeling in high spirits, so I wrote some code for you. Also, I agree it would be nice to have example snippets on the tianocore website for common tasks. If someone sets that up, I'd contribute. I didn't compile this, so please forgive any mistakes. /** loop through all volumes a

Re: [edk2] Directory/File system traversal example

2014-12-11 Thread John Smith
Thank you, that looks like it will get me very close. I had went into the ShellPkg at one point while wandering the directory structure, but went into Application rather than Library and then finding nothing I backed out and went elsewhere (BDS). V/R JRS On Thu, Dec 11, 2014 at 2:02 PM, Thomas R

Re: [edk2] Directory/File system traversal example

2014-12-11 Thread John Smith
On Thu, Dec 11, 2014 at 12:59 PM, Andrew Fish wrote: > > On Dec 11, 2014, at 9:35 AM, John Smith > wrote: > > Anyone know where I can get an example of walking through the filesystem > with a UEFI application? > > > You could get some ideas from this code: > https://svn.code.sf.net/p/edk2/code/t

Re: [edk2] Directory/File system traversal example

2014-12-11 Thread Thomas Rognon
Not skeleton code, but look at ls in ShellPkg https://svn.code.sf.net/p/edk2/code/trunk/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c On Thu, Dec 11, 2014 at 11:35 AM, John Smith wrote: > > Anyone know where I can get an example of walking through the filesystem > with a UEFI application

Re: [edk2] Directory/File system traversal example

2014-12-11 Thread Andrew Fish
> On Dec 11, 2014, at 9:35 AM, John Smith wrote: > > Anyone know where I can get an example of walking through the filesystem with > a UEFI application? > You could get some ideas from this code: https://svn.code.sf.net/p/edk2/code/trunk/edk2/EmbeddedPkg/Library/EfiFileLib/EfiFileLib.c It h

[edk2] Directory/File system traversal example

2014-12-11 Thread John Smith
Anyone know where I can get an example of walking through the filesystem with a UEFI application? More generally, is there a set of skeleton code examples like Microsoft does for kernel development? V/R JRS -- Download B