#3747: getDirectoryContents yields wrong results
------------------------------------------+---------------------------------
  Reporter:  Meddix                       |          Owner:         
      Type:  bug                          |         Status:  new    
  Priority:  normal                       |      Milestone:         
 Component:  libraries/directory          |        Version:  6.10.4 
Resolution:                               |       Keywords:         
Difficulty:                               |             Os:  Windows
  Testcase:  getDirectoryContents "c:"    |   Architecture:  x86    
   Failure:  Incorrect result at runtime  |  
------------------------------------------+---------------------------------
Changes (by [email protected]):

  * difficulty:  =>

Comment:

 I believe, if you invoke that program from any directory on the C: drive,
 that is the correct behaviour.
 The filepath specification "C:" means exactly the "current directory on
 drive C".
 Every drive has its own separate "current" directory.
 If you want the root of the drive, you need to specify "C:\".

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3747#comment:1>
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