|
Boost : |
From: Jonathan Wakely (cow_at_[hidden])
Date: 2005-05-09 03:22:56
On Mon, May 09, 2005 at 12:05:35PM +1000, Mathew Robertson wrote:
> > I'm only partially convinced. How useful is knowing that you can ifstream a
> > directory? The only cases I can think of are so system specific that I have
> > trouble seeing them in the context of Boost.Filesystem.
>
> ReiserFS version 4 supports opening a directory as a file. eg:
FreeBSD and Solaris both allow opening a directory (read-only) with
open(2) and reading from it with read(2) on their default FS types.
If you know the format of the directory and want to write a non-portable
app that reads it directly you could use an ifstream to do so, in
theory.
jon
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk