Ticket #177 (closed bug: Fixed)

Opened 10 years ago

Last modified 43 years ago

doesDirectoryExist "/" ==> False

Reported by: nobody Owned by: simonmar
Priority: normal Milestone:
Component: None Version: None
Keywords: Cc:
Operating System: Architecture:
Type of failure: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

doesDirectoryExist gives False when called with root dir, "/". 
 
I think that the following patch corrects this (I have not tried yet): 
 
$ diff -u Directory.hs,orig Directory.hs 
--- Directory.hs,orig   2003-04-11 12:11:24.000000000 +0200 
+++ Directory.hs        2003-09-15 18:22:56.000000000 +0200 
@@ -597,7 +597,7 @@ 
   
 fileNameEndClean :: String -> String 
 fileNameEndClean name = 
-  if i >= 0 && (ec == '\\' || ec == '/') then 
+  if i > 0 && (ec == '\\' || ec == '/') then 
      fileNameEndClean (take i name) 
    else 
      name 
 
 
vbzoli@vbzo.li 
 

Change History

Changed 10 years ago by simonmar

  • status changed from assigned to closed
Logged In: YES 
user_id=48280

Fixed, thanks.
Note: See TracTickets for help on using tickets.