]> Cypherpunks repositories - gostls13.git/commitdiff
os: fix documentation for FileInfo.Name.
authorRob Pike <r@golang.org>
Thu, 7 Jul 2011 06:05:38 +0000 (16:05 +1000)
committerRob Pike <r@golang.org>
Thu, 7 Jul 2011 06:05:38 +0000 (16:05 +1000)
It's the base name, not the full name.
Fixes #2047.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4680041

src/pkg/os/types.go

index 79f6e9d497689629c82f50c29bbcb62cf77a22b3..df57b59a388033bfca492d6db7676f3f5e7685df 100644 (file)
@@ -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
 }