Re: fts(3) depth or breadth first?
phil-news-nospam_at_ipal.net
Date: 06/05/03
- Next message: phil-news-nospam_at_ipal.net: "Re: BSD VM architecture..."
- Previous message: Erik Max Francis: "Re: Abort in App: explanation?"
- In reply to: Valentin Nechayev: "Re: fts(3) depth or breadth first?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 4 Jun 2003 22:36:44 GMT
On Wed, 4 Jun 2003 22:09:12 +0300 Valentin Nechayev <netch@segfault.kiev.ua> wrote:
|>>> William Ahern wrote:
|
| WA> is there any way to control the depth that fts(3) goes to?
|
| No. fts is only depth first (but in the same time depth last, i.e.
| you can ask it to list directory both before and after its contents).
| Breadth first order isn't implemented.
However, with fts_children() you can work around that and get the
effect of breadth first, if desired. It's just more work for the
calling program to do; more code for the programmer to write.
-- ----------------------------------------------------------------- | Phil Howard - KA9WGN | Dallas | http://linuxhomepage.com/ | | phil-nospam@ipal.net | Texas, USA | http://ka9wgn.ham.org/ | -----------------------------------------------------------------
- Next message: phil-news-nospam_at_ipal.net: "Re: BSD VM architecture..."
- Previous message: Erik Max Francis: "Re: Abort in App: explanation?"
- In reply to: Valentin Nechayev: "Re: fts(3) depth or breadth first?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|