#1874: getDirectoryContents yields "invalid argument" instead of "permission
error"
------------------------+---------------------------------------------------
Reporter: Orphi | Type: bug
Status: closed | Priority: normal
Milestone: _|_ | Component: libraries/directory
Version: 6.8.1 | Resolution: fixed
Keywords: | Testcase: getDirectoryContents "C:\\System
Volume Information"
Blockedby: | Difficulty: Moderate (less than a day)
Os: Windows | Blocking:
Architecture: x86 | Failure: None/Unknown
------------------------+---------------------------------------------------
Changes (by fryguybob):
* cc: fryguybob@… (added)
* status: new => closed
* resolution: => fixed
Comment:
Looks like this was addressed with the changes for #3300.
libraries/directory:
{{{
Thu Jun 18 06:48:58 PDT 2009 Simon Marlow <[email protected]>
* Windows: Unicode getDirectoryContents and setPermissions
}}}
Both 7.0 and 7.1 work for me:
{{{
> getDirectoryContents "C:\\System Volume Information\\"
*** Exception: C:\System Volume Information\: getDirectoryContents:
permission denied (Access is denied.)
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1874#comment:14>
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