projects
/
haskell-directory.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c37cf45
)
[project @ 2003-09-16 13:46:36 by simonmar]
author
simonmar
<unknown>
Tue, 16 Sep 2003 13:46:36 +0000
(13:46 +0000)
committer
simonmar
<unknown>
Tue, 16 Sep 2003 13:46:36 +0000
(13:46 +0000)
Don't strip the trailing slash from the filename '/'.
System/Directory.hs
patch
|
blob
|
history
diff --git
a/System/Directory.hs
b/System/Directory.hs
index
734ed94
..
9cb985c
100644
(file)
--- a/
System/Directory.hs
+++ b/
System/Directory.hs
@@
-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