[fpc-pascal] FileExists inconsistency

Marco van de Voort marcov at stack.nl
Thu Jan 4 13:59:41 CET 2007


> Marco van de Voort wrote:
> >
> >> In any case, I'd consider the reported behaviour (for Linux) buggy - is
> >> somebody going to fix it? Maybe the original reporter might add it to
> >> our
> >> bug repository?
> >
> > Problem is that it is "FileExists". On Windows a directory is not a file,
> > under *nix it is. One some you even can edit a directory with a texteditor
> > if you are brave. (most modern texteditors are protected against this, but
> > often e.g. single user mode static tools aren't)
> 
> The point is how the function is defined (and documented), not how it is
> named,

That's exactly what I meant. It is defined in terms of "file", a concept
that differs. 

Note that I don't mind if it is fixed. Personally I'd look what Kylix does,
and follow that, otherwise we still have a difference somewhere.




More information about the fpc-pascal mailing list