]> Cypherpunks repositories - gostls13.git/commit
os: add Root
authorDamien Neil <dneil@google.com>
Tue, 23 Apr 2024 18:14:19 +0000 (11:14 -0700)
committerDamien Neil <dneil@google.com>
Wed, 20 Nov 2024 23:20:45 +0000 (23:20 +0000)
commit43d90c6a14e7b3fd1b3b8085b8071a09231c4b62
tree88d4671d7558a9ae2b8d7a7fe18f6482e6adb4e5
parent558f5372fc524e69ade3ab3fe36b1913a4095398
os: add Root

Add os.Root, a type which represents a directory and permits performing
file operations within that directory.

For #67002

Change-Id: I863f4f1bc320a89b1125ae4237761f3e9320a901
Reviewed-on: https://go-review.googlesource.com/c/go/+/612136
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Quim Muntal <quimmuntal@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
17 files changed:
api/next/67002.txt [new file with mode: 0644]
doc/next/6-stdlib/1-os-root.md [new file with mode: 0644]
doc/next/6-stdlib/99-minor/os/67002.md [new file with mode: 0644]
src/internal/syscall/windows/at_windows.go
src/os/file.go
src/os/file_windows.go
src/os/os_test.go
src/os/root.go [new file with mode: 0644]
src/os/root_js.go [new file with mode: 0644]
src/os/root_nonwindows.go [new file with mode: 0644]
src/os/root_noopenat.go [new file with mode: 0644]
src/os/root_openat.go [new file with mode: 0644]
src/os/root_plan9.go [new file with mode: 0644]
src/os/root_test.go [new file with mode: 0644]
src/os/root_unix.go [new file with mode: 0644]
src/os/root_windows.go [new file with mode: 0644]
src/os/root_windows_test.go [new file with mode: 0644]