[fpc-pascal] FileExists inconsistency
Tomas Hajny
XHajT03 at mbox.vol.cz
Thu Jan 4 13:53:35 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, IMHO. The fact that everything can be accessed as a "file" on *nix
doesn't mean that semantics of a RTL function name has to be derived from
a platform specific definition of the term "file".
Tomas
More information about the fpc-pascal
mailing list