[GHC] #3747: getDirectoryContents yields wrong results

GHC trac at galois.com
Fri Dec 11 11:41:33 EST 2009


#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 malcolm.wallace at cs.york.ac.uk):

  * 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


More information about the Glasgow-haskell-bugs mailing list