[Haskell-cafe] doesDirectoryExist is always returning False

wren ng thornton wren at freegeek.org
Sun Nov 21 20:41:42 EST 2010


On 11/20/10 9:55 AM, Marcelo Sousa wrote:
> Hi,
>
> I'm having currently a problem with System.Directory in my mac os.
>    System Version:	Mac OS X 10.6.5
>    Kernel Version:	Darwin 10.5.0
>
> Prelude System.Directory>  let dirTest = do {dir<- getCurrentDirectory; doesDirectoryExist dir}
> Prelude System.Directory>  dirTest
> False

For comparison, I do not get this behavior on:

     Mac OS X:  10.5.8
     Darwin:    9.8.0
     GHC:       6.12.1
     directory: 1.0.1.0


> I noticed also that I can't change the searchable field in the permissions record.
>
> Prelude System.Directory>  getPermissions "."
> Permissions {readable = True, writable = True, executable = True, searchable = False}

Again for comparison, the following works fine for me:

     getPermissions "." >>= \x -> return x {searchable = True}

-- 
Live well,
~wren


More information about the Haskell-Cafe mailing list