rquint at primenet.com
Fri Dec 8 19:33:13 CET 2000
At 06:01 PM 12/08/2000 +0100, you wrote:
>On Fri, 8 Dec 2000 James_Wilson at i2.com wrote:
> >> findfirst('*.*',faAnyFile-faDirectory,sr) will
> >> return '.' and '..' as well, even the sr.attr
> >> is correct set to faDirectory.
> >AFAIK, that will most likely remain that way as well. The '.' stands for
> >current directory, while the '..' stands for parent directory. Since, in
> >essence, those two entries do indeed represent directories findfirst is
> >returning the "correct" answer.
>Realy? Why should I use faDirectory or other attributes if the function
>allways return everything?
The function doesn't return everything, but it returns what it is supposed
to return. "." is the current "directory", ".." is the parent "directory".
They are exactly in the range of entries you have request. They are just
two "special" directory entries, and this is the case since DOS 2.0. Just
some DOS "compatible" OS have some options to surpress theses special
entries (Novell Netware for example).
More information about the fpc-pascal