Skip to content

iswritable(::FileName) is useless and broken #7385

@gasagna

Description

@gasagna

There is probably a bug is the iswritable function. Watch this:

julia> iswritable("/")
true

shell> touch /new
touch: cannot touch '/new': Permission denied

All this is run from the REPL, with julia launched as normal user, so there is no write permission at all in the root folder /. I would expect iswritable to return false in this case.

Running Julia v"0.3.0-prerelease+3461" on Ubuntu 14.04.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions