[Haskell-cafe] System.Posix.Files.isDirectory and
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Mon Feb 2 11:40:28 EST 2009
On 2009 Feb 1, at 17:49, Erik de Castro Lopo wrote:
> The following code creates a symbolic link in the current directory
> and then uses System.Posix.Files.getFileStatus to get the status of
> the link.
> However, isDirectory returns True and isSymbolicLink returns False
> which is very different from what the stat() system call on a POSIX
> system would return. I consider this a bug.
Have you actually tried it? stat() on a symlink returns information
about the target of the link; lstat() returns information about the
link itself. These functions correspond to getFileStatus and
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
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20090202/57de0278/PGP.bin
More information about the Haskell-Cafe