[Haskell-cafe] dangling symbolic links

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Thu Aug 28 00:55:03 EDT 2008

On 2008 Aug 28, at 0:46, Nicolas Frisby wrote:
> I think I've exhausted my options without catching exceptions.
> If I have an invalid symbolic link, how can I identify that it exists?

getSymbolicLinkStatus vs. getFileStatus?  The former will return if  
the link exists, the latter if its target does.  (Where not returning  
means throwing an exception in IO.)

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

More information about the Haskell-Cafe mailing list