Re: [fpc-pascal] FileExists inconsistency

2007-01-04 Thread Marco van de Voort
> 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, > >

Re: [fpc-pascal] FileExists inconsistency

2007-01-04 Thread Tomas Hajny
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.

Re: [fpc-pascal] FileExists inconsistency

2007-01-04 Thread Daniël Mantione
Op Thu, 4 Jan 2007, schreef Tomas Hajny: > Marco van de Voort wrote: > >> > >> Whoops, I overlooked that part of his answer. You're right, I cannot > >> either (PC-Dos 2000, no emulation). This is weird, because I have been > >> able to do this in the past. But it has then been changed a long ti

Re: [fpc-pascal] FileExists inconsistency

2007-01-04 Thread Marco van de Voort
> 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 director

Re: [fpc-pascal] FileExists inconsistency

2007-01-04 Thread Tomas Hajny
Marco van de Voort wrote: >> >> Whoops, I overlooked that part of his answer. You're right, I cannot >> either (PC-Dos 2000, no emulation). This is weird, because I have been >> able to do this in the past. But it has then been changed a long time >> ago >> already > > Afaik some of the FS Dos habi

Re: [fpc-pascal] FileExists inconsistency

2007-01-03 Thread Marco van de Voort
> > Whoops, I overlooked that part of his answer. You're right, I cannot > either (PC-Dos 2000, no emulation). This is weird, because I have been > able to do this in the past. But it has then been changed a long time ago > already Afaik some of the FS Dos habits changed going from FCBS to han

Re: [fpc-pascal] FileExists inconsistency

2007-01-03 Thread Jason P Sage
I've written stuff in freepascal that can load and parse a directory and decipher if it’s a directory or a file - even on POSIX (linux - Fedora 5). I'm not saying this is a big achievement - but perhaps - at an expense of speed - but in definitive returned results - I wonder if it would be prudent

Re: [fpc-pascal] FileExists inconsistency

2007-01-03 Thread Daniël Mantione
Op Wed, 3 Jan 2007, schreef Jonas Maebe: > > > 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,

Re: [fpc-pascal] FileExists inconsistency

2007-01-03 Thread Henry Vermaak
DirectoryExists? Yes, I know about that. Looks like you have to use FileExists and DirectoryExists together. Henry ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FileExists inconsistency

2007-01-03 Thread Jonas Maebe
On 3 jan 2007, at 16:46, Daniël 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 oth

Re: [fpc-pascal] FileExists inconsistency

2007-01-03 Thread Marco van de Voort
> Maybe there's something I'm missing? DirectoryExists? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FileExists inconsistency

2007-01-03 Thread Daniël Mantione
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. > >

Re: [fpc-pascal] FileExists inconsistency

2007-01-03 Thread 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 W

Re: [fpc-pascal] FileExists inconsistency

2007-01-03 Thread Daniël Mantione
Op Wed, 3 Jan 2007, schreef Vincent Snijders: > Henry Vermaak schreef: > > Hi all > > > > FileExists seems to be inconsistent between linux and windows. > > FileExists in linux returns true for a directory, but not in windows. > > The windows behaviour is consistent with Delphi, though, and I a

Re: [fpc-pascal] FileExists inconsistency

2007-01-03 Thread Vincent Snijders
Henry Vermaak schreef: Hi all FileExists seems to be inconsistent between linux and windows. FileExists in linux returns true for a directory, but not in windows. The windows behaviour is consistent with Delphi, though, and I assume that's correct. Can anyone confirm or comment on this? I ca

[fpc-pascal] FileExists inconsistency

2007-01-03 Thread Henry Vermaak
Hi all FileExists seems to be inconsistent between linux and windows. FileExists in linux returns true for a directory, but not in windows. The windows behaviour is consistent with Delphi, though, and I assume that's correct. Can anyone confirm or comment on this? Henry