| 1 | package osfs |
| 2 | |
| 3 | import "errors" |
| 4 | |
| 5 | // ErrPathEscapesParent represents when an action leads to escaping from the |
| 6 | // dir the filesystem is bound to. |
| 7 | // |
| 8 | // On non-js builds this aligns with [os.Root]'s containment guarantees; the |
| 9 | // upstream error returned by os.Root is not exported, so this sentinel is |
| 10 | // exposed instead. On js/wasm the symbol is defined for API parity but is |
| 11 | // not returned by the in-memory implementation. |
| 12 | var ErrPathEscapesParent = errors.New("path escapes from parent") |