apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@rkbloom.net
Subject Re: dot, dot-dot and apr_dir_read
Date Tue, 17 Feb 2004 01:13:11 GMT

As the guy who wrote that documentation and implemented the initial cut of that
code, I can answer to a degree.

Quoting Philip Martin <philip@codematters.co.uk>:
< 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

Mime
View raw message