Skip to content

System.Directory.getPermissions does not work well on Windows 7 #9

@freizl

Description

@freizl

It works well for following code

System.Directory.getPermissions "/path/to/somewhere"

However getting error with this:

System.Directory.getPermissions "/path/to/somewhere/"
*** Exception: getPermissions: does not exist (No such file or directory)

The only difference is the path name. It gets error when having extra trailing slash.
It looks wired.

Thanks your help.

PS: Previous discussion at https://ghc.haskell.org/trac/ghc/ticket/8342

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: a-bugThe described behavior is not working as intended.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions