Skip to content

Commit b702a26

Browse files
seankhliaogopherbot
authored andcommitted
os: mention fsys modifications during CopyFS
Fixes #70465 Change-Id: I47055df9ca5b1df21a361b0b8eea4c7d157e6403 Reviewed-on: https://go-review.googlesource.com/c/go/+/639156 Commit-Queue: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
1 parent 15f2324 commit b702a26

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/os/dir.go

+3
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ func ReadDir(name string) ([]DirEntry, error) {
145145
//
146146
// Symbolic links in dir are followed.
147147
//
148+
// New files added to fsys (including if dir is a subdirectory of fsys)
149+
// while CopyFS is running are not guaranteed to be copied.
150+
//
148151
// Copying stops at and returns the first error encountered.
149152
func CopyFS(dir string, fsys fs.FS) error {
150153
return fs.WalkDir(fsys, ".", func(path string, d fs.DirEntry, err error) error {

0 commit comments

Comments
 (0)