]> Cypherpunks repositories - gostls13.git/commit
io/fs: document that Sub does not check for existence
authorSean Liao <sean@liao.dev>
Fri, 6 Feb 2026 21:06:09 +0000 (21:06 +0000)
committerSean Liao <sean@liao.dev>
Sat, 7 Feb 2026 00:01:48 +0000 (16:01 -0800)
commit3048de9d6e5693e09c9885ec8b4673dbcf72c1e6
treed310583510a27b141f64bdee0b1f1128711fef31
parent65ac2afd4b22fb29aa8cbd6a1d26ad7bb2ceeca4
io/fs: document that Sub does not check for existence

Also recommend os.Root for constraining access.

Fixes #77447

Change-Id: Id8d178163438e9264fe19ed37ba03e1ee5d0bd35
Reviewed-on: https://go-review.googlesource.com/c/go/+/742284
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/io/fs/sub.go