1
0
mirror of https://github.com/golang/go synced 2024-11-21 20:54:45 -07:00

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
This commit is contained in:
Rob Pike 2011-07-07 16:05:38 +10:00
parent 238274ede0
commit 07c9a92564

View File

@ -27,7 +27,7 @@ type FileInfo struct {
Atime_ns int64 // access time; nanoseconds since epoch. Atime_ns int64 // access time; nanoseconds since epoch.
Mtime_ns int64 // modified time; nanoseconds since epoch. Mtime_ns int64 // modified time; nanoseconds since epoch.
Ctime_ns int64 // status change 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 FollowedSymlink bool // followed a symlink to get this information
} }