[project @ 2003-09-16 13:46:36 by simonmar]
authorsimonmar <unknown>
Tue, 16 Sep 2003 13:46:36 +0000 (13:46 +0000)
committersimonmar <unknown>
Tue, 16 Sep 2003 13:46:36 +0000 (13:46 +0000)
Don't strip the trailing slash from the filename '/'.

System/Directory.hs

index 734ed94..9cb985c 100644 (file)
@@ -636,7 +636,7 @@ isDirectory stat = do
 
 fileNameEndClean :: String -> String
 fileNameEndClean name = 
-  if i >= 0 && (ec == '\\' || ec == '/') then 
+  if i > 0 && (ec == '\\' || ec == '/') then 
      fileNameEndClean (take i name)
    else
      name