mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
pkg: add missing godoc comments to windows versions
Mostly copied comments from unix files. R=rsc CC=golang-dev https://golang.org/cl/5533057
This commit is contained in:
parent
f320eb94f9
commit
994e0646d8
34 changed files with 172 additions and 180 deletions
|
|
@ -139,22 +139,7 @@ func Lstat(name string) (fi FileInfo, err error) {
|
|||
return fileInfoFromStat(&stat, name), nil
|
||||
}
|
||||
|
||||
// Readdir reads the contents of the directory associated with file and
|
||||
// returns an array of up to n FileInfo values, as would be returned
|
||||
// by Lstat, in directory order. Subsequent calls on the same file will yield
|
||||
// further FileInfos.
|
||||
//
|
||||
// If n > 0, Readdir returns at most n FileInfo structures. In this case, if
|
||||
// Readdir returns an empty slice, it will return a non-nil error
|
||||
// explaining why. At the end of a directory, the error is io.EOF.
|
||||
//
|
||||
// If n <= 0, Readdir returns all the FileInfo from the directory in
|
||||
// a single slice. In this case, if Readdir succeeds (reads all
|
||||
// the way to the end of the directory), it returns the slice and a
|
||||
// nil error. If it encounters an error before the end of the
|
||||
// directory, Readdir returns the FileInfo read until that point
|
||||
// and a non-nil error.
|
||||
func (f *File) Readdir(n int) (fi []FileInfo, err error) {
|
||||
func (f *File) readdir(n int) (fi []FileInfo, err error) {
|
||||
dirname := f.name
|
||||
if dirname == "" {
|
||||
dirname = "."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue