[Haskell-cafe] Infinite loop?

Mark T.B. Carroll mark at ixod.org
Sun Feb 19 16:03:35 EST 2006


Barbier de Reuille Pierre <pierre.barbier at cirad.fr> writes:
(snip)
> And how can you, in Haskell, detect symbolic links ?

I use System.Posix.Files.
getSymbolicLinkStatus is like lstat(2) under Unix.
It returns a value to which you can apply the
isSymbolicLink predicate.

Of course, you can't be sure the file won't change in between you
checking and you acting on that result.

-- Mark



More information about the Haskell-Cafe mailing list