View definition

(*File).Readdirnames

Defined in github.com/golang/go/src/os/dir.go

Description

Readdirnames reads and returns a slice of names from the directory f.

If n > 0, Readdirnames returns at most n names. In this case, if Readdirnames 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, Readdirnames returns all the names from the directory in a single slice. In this case, if Readdirnames 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, Readdirnames returns the names read until that point and a non-nil error.

Readdirnames is referenced in 698 repositories

github.com/golang/go github.com/deferpanic/gorump github.com/golang2/go2

...