1
0
mirror of https://github.com/golang/go synced 2024-11-21 16:34:42 -07:00

os: document FileInfo.Size as system-dependent for irregular files

R=rsc, r
CC=golang-dev
https://golang.org/cl/5795059
This commit is contained in:
Brad Fitzpatrick 2012-03-12 13:17:48 -07:00
parent b23691148f
commit 4edd53e47b

View File

@ -15,7 +15,7 @@ func Getpagesize() int { return syscall.Getpagesize() }
// A FileInfo describes a file and is returned by Stat and Lstat
type FileInfo interface {
Name() string // base name of the file
Size() int64 // length in bytes
Size() int64 // length in bytes for regular files; system-dependent for others
Mode() FileMode // file mode bits
ModTime() time.Time // modification time
IsDir() bool // abbreviation for Mode().IsDir()