Re: [fpc-pascal] FPC docs about FindFirst

2019-09-24 Thread Michael Van Canneyt
On Tue, 24 Sep 2019, Anthony Walter wrote: Michael, Okay I tested and it turns out you are right. I was omitting faDirectory or faSymLink in FindFirst, so the faSymLink is only set in TSearchRec if you request it. Thanks. You're welcome. You would not be the first to be confused by the use

Re: [fpc-pascal] FPC docs about FindFirst

2019-09-24 Thread Anthony Walter
Michael, Okay I tested and it turns out you are right. I was omitting faDirectory or faSymLink in FindFirst, so the faSymLink is only set in TSearchRec if you request it. Thanks. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.f

Re: [fpc-pascal] FPC docs about FindFirst

2019-09-24 Thread Marco van de Voort
Op 2019-09-24 om 18:57 schreef Ralf Quint: On 9/24/2019 12:24 AM, Marco van de Voort wrote: Op 2019-09-24 om 03:03 schreef Ralf Quint: systutils, so having documentation that includes the differences between the versions would be helpful. Turbo Pascal (for DOS) didn't have a FindClose functi

Re: [fpc-pascal] FPC docs about FindFirst

2019-09-24 Thread Ralf Quint
On 9/24/2019 12:24 AM, Marco van de Voort wrote: Op 2019-09-24 om 03:03 schreef Ralf Quint: systutils, so having documentation that includes the differences between the versions would be helpful. Turbo Pascal (for DOS) didn't have a FindClose function, as "officially", this would not be neces

Re: [fpc-pascal] FPC docs about FindFirst

2019-09-24 Thread Marco van de Voort
Op 2019-09-24 om 03:03 schreef Ralf Quint: systutils, so having documentation that includes the differences between the versions would be helpful. Turbo Pascal (for DOS) didn't have a FindClose function, as "officially", this would not be necessary on DOS. On all other OS, including Windows,

Re: [fpc-pascal] FPC docs about FindFirst

2019-09-24 Thread Michael Van Canneyt
On Tue, 24 Sep 2019, Anthony Walter wrote: Related, It would seem on Linux that FindFirst, FindNext or TSearchRec that none of them can properly detect a symbolic link. For example, if you wanted enumerate files and folder, and there exists a symbolic link inside one folder to some parent of

Re: [fpc-pascal] FPC docs about FindFirst

2019-09-23 Thread Anthony Walter
Related, It would seem on Linux that FindFirst, FindNext or TSearchRec that none of them can properly detect a symbolic link. For example, if you wanted enumerate files and folder, and there exists a symbolic link inside one folder to some parent of said folder, it's not possible to detect leading

Re: [fpc-pascal] FPC docs about FindFirst

2019-09-23 Thread Ralf Quint
On 9/23/2019 3:53 PM, James Richters wrote: I have ported Turbo Pascal code but then use Sysutils instead of DOS, my intention was to convert it to a windows console application that used windows features, and I had no interest in maintaining Turbo Pascal backward compatibility, and the use o

Re: [fpc-pascal] FPC docs about FindFirst

2019-09-23 Thread James Richters
I have ported Turbo Pascal code but then use Sysutils instead of DOS, my intention was to convert it to a windows console application that used windows features, and I had no interest in maintaining Turbo Pascal backward compatibility, and the use of findfirst, findnext, etc, was part of the co

Re: [fpc-pascal] FPC docs about FindFirst

2019-09-22 Thread Michael Van Canneyt
On Sun, 22 Sep 2019, Tomas Hajny wrote: On 2019-09-22 23:04, Michael Van Canneyt wrote: On Sun, 22 Sep 2019, Ched wrote: . . From https://www.freepascal.org/port.html about porting Turbo Pascal codes: > the dos unit Findfirst() call must always be followed by a Findclose to release so

Re: [fpc-pascal] FPC docs about FindFirst

2019-09-22 Thread Tomas Hajny
On 2019-09-22 23:04, Michael Van Canneyt wrote: On Sun, 22 Sep 2019, Ched wrote: . . From https://www.freepascal.org/port.html about porting Turbo Pascal codes: > the dos unit Findfirst() call must always be followed by a Findclose to release some resource. What's right ? The sysutils o

Re: [fpc-pascal] FPC docs about FindFirst

2019-09-22 Thread Michael Van Canneyt
On Sun, 22 Sep 2019, Ched wrote: Hello, Le 22.09.19 à 16:59, Michael Van Canneyt a écrit : On Sun, 22 Sep 2019, AlexeyT wrote: https://www.freepascal.org/docs-html/rtl/sysutils/findfirst.html 1) add to the list of attribs the value faAnyFile. Done. 2) correct the example: call Find

Re: [fpc-pascal] FPC docs about FindFirst

2019-09-22 Thread Sven Barth via fpc-pascal
Ched schrieb am So., 22. Sep. 2019, 21:11: > Hello, > > > Le 22.09.19 à 16:59, Michael Van Canneyt a écrit : > > > > > > On Sun, 22 Sep 2019, AlexeyT wrote: > > > >> https://www.freepascal.org/docs-html/rtl/sysutils/findfirst.html > >> > >> 1) add to the list of attribs the value faAnyFile. > > >

Re: [fpc-pascal] FPC docs about FindFirst

2019-09-22 Thread Ched
Hello, Le 22.09.19 à 16:59, Michael Van Canneyt a écrit : On Sun, 22 Sep 2019, AlexeyT wrote: https://www.freepascal.org/docs-html/rtl/sysutils/findfirst.html 1) add to the list of attribs the value faAnyFile. Done. 2) correct the example: call FindClose only inside block "if FindFirst

Re: [fpc-pascal] FPC docs about FindFirst

2019-09-22 Thread Michael Van Canneyt
On Sun, 22 Sep 2019, AlexeyT wrote: https://www.freepascal.org/docs-html/rtl/sysutils/findfirst.html 1) add to the list of attribs the value faAnyFile. Done. 2) correct the example: call FindClose only inside block "if FindFirst(..)=0" This is already so in trunk. Michael. ___

[fpc-pascal] FPC docs about FindFirst

2019-09-22 Thread AlexeyT
https://www.freepascal.org/docs-html/rtl/sysutils/findfirst.html 1) add to the list of attribs the value faAnyFile. 2) correct the example: call FindClose only inside block "if FindFirst(..)=0" -- Regards, Alexey ___ fpc-pascal maillist - fpc-pas