aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/os/file.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os/file.go b/src/os/file.go
index 2823128554..ea64a662cc 100644
--- a/src/os/file.go
+++ b/src/os/file.go
@@ -623,6 +623,8 @@ func isWindowsNulName(name string) bool {
// the /prefix tree, then using DirFS does not stop the access any more than using
// os.Open does. DirFS is therefore not a general substitute for a chroot-style security
// mechanism when the directory tree contains arbitrary content.
+//
+// The result implements fs.StatFS.
func DirFS(dir string) fs.FS {
return dirFS(dir)
}