Skip to content

proposal: os: Export path escape error #74640

@PotentialStyx

Description

@PotentialStyx

Proposal Details

When using os.Root the only way to detect when a path would escape the root is using string comparison on the error because errPathEscapes isn't exported. I propose exporting errPathEscapes as ErrPathEscapes so that errors.Is() can be used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions