[Haskell-cafe] File path programme

Ben Rudiak-Gould Benjamin.Rudiak-Gould at cl.cam.ac.uk
Tue Jan 25 14:22:21 EST 2005

Jules Bean wrote:

 > [...] it is an extension of the notion that "/foo/" and "/foo"
 > refer to the same directory. (Except, apparently, in the presence
 > of symbolic links... or so I have some vague memory)

Yes, "/foo/" is equivalent to "/foo/.", which is not always the same as 
"/foo". If "/foo" is a symlink, then lstat("/foo/", ...) will stat the 
directory at the other end, not the symlink.

-- Ben

More information about the Haskell-Cafe mailing list