aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2011-07-07 16:05:38 +1000
committerRob Pike <r@golang.org>2011-07-07 16:05:38 +1000
commit07c9a925644ad2c6f6742be09371c0556f3beb91 (patch)
tree2468285e3ac50fbb17128f411f48f71b75d0b63b
parent238274ede0ec19e6a8b83334b5c6729afa746beb (diff)
downloadgo-07c9a925644ad2c6f6742be09371c0556f3beb91.tar.gz
go-07c9a925644ad2c6f6742be09371c0556f3beb91.zip
os: fix documentation for FileInfo.Name.
It's the base name, not the full name. Fixes #2047. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4680041
-rw-r--r--src/pkg/os/types.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/os/types.go b/src/pkg/os/types.go
index 79f6e9d497..df57b59a38 100644
--- a/src/pkg/os/types.go
+++ b/src/pkg/os/types.go
@@ -27,7 +27,7 @@ type FileInfo struct {
Atime_ns int64 // access time; nanoseconds since epoch.
Mtime_ns int64 // modified time; nanoseconds since epoch.
Ctime_ns int64 // status change time; nanoseconds since epoch.
- Name string // name of file as presented to Open.
+ Name string // base name of the file name provided in Open, Stat, etc.
FollowedSymlink bool // followed a symlink to get this information
}