MCPcopy
hub / github.com/perkeep/perkeep / Readdir

Method Readdir

pkg/schema/schema.go:107–107  ·  view source on GitHub ↗

Readdir reads the contents of the directory associated with dr and returns an array of up to n DirectoryEntries structures. Subsequent calls on the same file will yield further DirectoryEntries. If n > 0, Readdir returns at most n DirectoryEntry structures. In this case, if Readdir returns an empty

(ctx context.Context, n int)

Source from the content-addressed store, hash-verified

105 // end of the directory, Readdir returns the DirectoryEntry read
106 // until that point and a non-nil error.
107 Readdir(ctx context.Context, n int) ([]DirectoryEntry, error)
108}
109
110type Symlink interface {

Callers 9

NewFunction · 0.65
populateFunction · 0.65
ServeHTTPMethod · 0.65
checkModtimeFunction · 0.65
GenDepsWithPathFunction · 0.65
statPathMethod · 0.65
cleanCacheDirFunction · 0.65
packBinariesFunction · 0.65

Implementers 1

DirReaderpkg/schema/dirreader.go

Calls

no outgoing calls

Tested by 2

populateFunction · 0.52