Skip to content

proposal: os: Export path escape error #74640

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

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions