[fpc-pascal]Find*-Bug

Hinrich Donner hd at tiro.de
Fri Dec 8 18:01:07 CET 2000


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?

Hinrich
-- 
Hinrich Donner





More information about the fpc-pascal mailing list