On Sat, 19 Feb 2011, brian wrote:

I'm trying to convert a Delphi console-mode program which needs to walk directory trees to FP **and Linux** - is there a standard way to detect and handle recursive symlinks, if the user has been daft enough to create them?

You can use faSymLink in FindFirst/FindNext to detect symbolic links (this works on windows as well) and then use fpReadLink (unit baseunix) to see where the link leads too.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to