Fix doesDirectoryExist; fixes trac #1490
authorIan Lynagh <igloo@earth.li>
Sat, 21 Jul 2007 20:01:54 +0000 (20:01 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 21 Jul 2007 20:01:54 +0000 (20:01 +0000)
commite3a4b0478ada7409027379fdf104419a46e219a7
tree77342a2242f93fbed8503485ecb1417c643b85fb
parent1e7b1d58aab549ad7efc2b0f33d5b13872c6e004
Fix doesDirectoryExist; fixes trac #1490
We used to always strip trailing path separators from the path we were
given, but mingw's stat succeeds for C:\ and C:\foo but fails for C:
and C:\foo\. Thus we now use a trailing slash if and only if the path
we are given is a drive.
System/Directory.hs