mirror of
https://github.com/golang/go
synced 2024-11-25 11:07:59 -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:
parent
b23691148f
commit
4edd53e47b
@ -15,7 +15,7 @@ func Getpagesize() int { return syscall.Getpagesize() }
|
|||||||
// A FileInfo describes a file and is returned by Stat and Lstat
|
// A FileInfo describes a file and is returned by Stat and Lstat
|
||||||
type FileInfo interface {
|
type FileInfo interface {
|
||||||
Name() string // base name of the file
|
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
|
Mode() FileMode // file mode bits
|
||||||
ModTime() time.Time // modification time
|
ModTime() time.Time // modification time
|
||||||
IsDir() bool // abbreviation for Mode().IsDir()
|
IsDir() bool // abbreviation for Mode().IsDir()
|
||||||
|
Loading…
Reference in New Issue
Block a user