#1869: (doesDirectoryExist "C:\\") yields False
-------------------------------+--------------------------------------------
 Reporter:  Orphi              |          Owner:       
     Type:  bug                |         Status:  new  
 Priority:  normal             |      Milestone:       
Component:  libraries (other)  |        Version:  6.6.1
 Severity:  normal             |       Keywords:       
 Testcase:                     |   Architecture:  x86  
       Os:  Windows            |  
-------------------------------+--------------------------------------------
 On Windows, the action

 {{{doesDirectoryExist "C:\\"}}}

 yields False. This is somewhat unexpected, given that
 `getDirectoryContents "C:\\"` works just fine. I would have expected
 `doesDirectoryExist` to return True for any path on which
 `getDirectoryContents` will succeed. It also means that there is no way to
 check whether a given network drive has been mapped.

 I think at a minimum this behaviour should be documented in the function
 description. Ideally, the function should either return true for drive
 names [that exist], or there should be a seperate `doesDriveExist`
 function. (The former seems more portal though.)

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1869>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to