From 910e6b5fae7cbf84e4a3fcfa6739e20239080bcd Mon Sep 17 00:00:00 2001 From: Damien Neil Date: Wed, 24 Jul 2024 10:29:13 -0700 Subject: os: document CopyFS behavior for symlinks in destination Also clarify the permissions of created files, and note that CopyFS will not overwrite files. Update a few places in documentation to use 0oXXX for octal consts. For #62484 Change-Id: I208ed2bde250304bc7fac2b93963ba57037e791e Reviewed-on: https://go-review.googlesource.com/c/go/+/600775 Reviewed-by: Ian Lance Taylor Reviewed-by: Russ Cox LUCI-TryBot-Result: Go LUCI --- src/os/example_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/os/example_test.go') diff --git a/src/os/example_test.go b/src/os/example_test.go index 7437a74cd0..c507d46c46 100644 --- a/src/os/example_test.go +++ b/src/os/example_test.go @@ -61,7 +61,7 @@ func ExampleFileMode() { log.Fatal(err) } - fmt.Printf("permissions: %#o\n", fi.Mode().Perm()) // 0400, 0777, etc. + fmt.Printf("permissions: %#o\n", fi.Mode().Perm()) // 0o400, 0o777, etc. switch mode := fi.Mode(); { case mode.IsRegular(): fmt.Println("regular file") -- cgit v1.3-5-g9baa