As the guy who wrote that documentation and implemented the initial cut of that code, I can answer to a degree.
Quoting Philip Martin <[EMAIL PROTECTED]>: < snip ...> > > Questions for APR: > > - Is the documented "dot-first" behaviour of apr_dir_read intended? Yes, it is intended. This is often a problem with writing portable code, so I was trying to make that task easier. > - If it is, how does the current implementation of apr_dir_read > guarantee it? It probably doesn't. I never encountered a FS that didn't consistantly return . and .. first, so I didn't code around the problem. It wouldn't be too hard to resolve this in the APR code however. Ryan