This is known behaviour of the MS CRT implementation of stat() on directories -- trailing slashes will cause it to report ENOENT.
Undesirable behaviour, you might (reasonably) say, but the format of FilePaths is left system-specific by Haskell98. --sigbjorn ----- Original Message ----- From: "Claus Reinke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 16, 2002 07:21 Subject: Directory.doesDirectoryExist inconsistency > I've just been chasing a portability problem, where a largish third-party > program works fine on our suns (ghc-5.02.3), but chokes under > cygwin/windows (ghc-5.04). Comes down to an inconsistency in the > handling of (trailing?) slashes in Directory.doesDirectoryExist (see > a and b below). > ... _______________________________________________ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
