Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2004-03

Findfirst and symbolics links

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Inpromptu

Hi

How do I know if a file returned by findfirst is a real file or a symbolic link ?

Thanks

_____________________________________________________________ Web-based SMS services available at http://www.operamail.com. From your mailbox to local or overseas cell phones. Powered by Outblaze
Peter Vreman
to Inpromptu
you wrote
Hi How do I know if a file returned by findfirst is a real file or a symbolic link ?

Use stat() (fpStat() in 1.9.x). There is a patch supplied to add a Mode field to TSearchRec, but that is not applied yet.

Peter

Inpromptu

Thanks... !

That patch can be applied to the fpc 1.0.4 source ? There is any other workaround to the problem ?

Show quoted text 16 lines
At 19:05 2-3-2004, you wrote: >Hi > >How do I know if a file returned by findfirst is a real file or a symbolic >link ? Use stat() (fpStat() in 1.9.x). There is a patch supplied to add a Mode field to TSearchRec, but that is not applied yet. Peter _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
_____________________________________________________________ Web-based SMS services available at http://www.operamail.com. From your mailbox to local or overseas cell phones. Powered by Outblaze
Peter Vreman
to Inpromptu
Thanks... ! That patch can be applied to the fpc 1.0.4 source ? There is any other workaround to the problem ?

I don't think it, the Unix RTL is different. But ofcourse you can do patch it manual. See the fpc-devel mailinglist archives for the patch.