[Haskell-cafe] System.Posix.Files.isDirectory and System.Posix.Files.isSymbolicLink

Erik de Castro Lopo mle+cl at mega-nerd.com
Sun Feb 1 19:56:08 EST 2009

Duncan Coutts wrote:

> No, it is the correct POSIX behaviour. You are thinking of lstat() which
> is what getSymbolicLinkStatus uses. The getFileStatus function calls
> stat().

Maybe this is a naming issue.

In C I think of "lstat" as "stat" but don't follow link.

If getSymbolicLinkStatus was instead called getFileStatusNoFollowLink I
think there would be less chance of confusion.

Erik de Castro Lopo
"I once worked for a company where as part of the BS5750 "Quality"
process I attended a meeting where I was informed that it was Company
Policy not to use free software. When I asked him for his written
authorisation for me to remove X Windows from our Sun workstations,
he backtracked."   -- Phil Hunt

More information about the Haskell-Cafe mailing list