[fpc-pascal] FileExists inconsistency
Jonas Maebe
jonas.maebe at elis.ugent.be
Wed Jan 3 16:53:17 CET 2007
On 3 jan 2007, at 16:46, Dani=EBl Mantione wrote:
> Op Wed, 3 Jan 2007, schreef Henry Vermaak:
>
>>> There is no getting away that Dos filesystem handling is different
>>> from Unix file handling. On Dos like platforms, a filename with
>>> a same name as a subdirectory can exist in the same directory. In =
>>> other
>>> words, it should return false.
>>>
>>
>> I cannot create a file with the same name as a subdir under =
>> Windows XP
>> on ntfs or fat32...
[snip]
>> Maybe there's something I'm missing?
>
> No, because in a Dos like filesystem, a direcory abcd will still =
> allow a
> file abcd to be created. In other words, fileexists returns false =
> so the
> file can be created.
As he mentioned above, that does not work for him. It also does not =
work for me in MS Dos 6.22 and fat16 (running in an emulator, but I =
doubt that changes anything for this sort of stuff):
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedGraphic.png
Type: image/png
Size: 14033 bytes
Desc: not available
Url : http://lists.freepascal.org/lists/fpc-pascal/attachments/20070103/314=
ebe94/pastedGraphic-0001.png
-------------- next part --------------
Jonas
More information about the fpc-pascal
mailing list