the directory recursion code we use in uwin is the same code we use on unix
its called "fts" -- it was almost standardized by posix
we have our own implementation, bsd and gnu also have one

this sounds like a unix "ls -R" type application
for that look at fts_children() to get the list of child files
each time a directory is entered

to get it to work on the win32 api we first wrote the posix readdir()
using the win32 FindNextFile() -- if you are rolling your own win32 code
FindNextFile() is the place to start

hope that helps

On Mon, 30 Jul 2012 01:14:50 -0400 [email protected] wrote:
> I know that this might not be your forte or that of Mr Ritchie or Mr
> Kernighan, that said you are masters of C. I was wondering what you would
> reccommend for doing recursion within subdirectories? I think that I've
> got it down, but it never hurts to ask those more experienced than myself.

> A hint from the masters at AT&T who invented this stuff in the first place
> would be really cool. Recursion might not be the best way to do it, it'd
> like to process files first then directories, so it might have to be two
> pass.

> Thanks for reading my question. I'm not asking for code, I can write that,
> I'm just asking, with your experience what's the best way?

> Patrick

> _______________________________________________
> uwin-users mailing list
> [email protected]
> https://mailman.research.att.com/mailman/listinfo/uwin-users

_______________________________________________
uwin-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/uwin-users

Reply via email to