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.
Proposal Details
When using
os.Rootthe only way to detect when a path would escape the root is using string comparison on the error becauseerrPathEscapesisn't exported. I propose exportingerrPathEscapesasErrPathEscapesso thaterrors.Is()can be used.