Directory.doesDirectoryExist inconsistency

Sigbjorn Finne sof at galois.com
Wed Oct 16 10:54:27 EDT 2002


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" <claus.reinke at talk21.com>
To: <glasgow-haskell-bugs at haskell.org>
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).
> 
...




More information about the Glasgow-haskell-bugs mailing list