@@ -75,7 +75,7 @@ type StatVFSFileCmder interface {
7575// Note in cases of an error, the error text will be sent to the client.
7676// Called for Methods: List, Stat, Readlink
7777//
78- // Since Filelist returns an os.FileInfo, this can make it non-ideal for impelmenting Readlink.
78+ // Since Filelist returns an os.FileInfo, this can make it non-ideal for implementing Readlink.
7979// This is because the Name receiver method defined by that interface defines that it should only return the base name.
8080// However, Readlink is required to be capable of returning essentially any arbitrary valid path relative or absolute.
8181// In order to implement this more expressive requirement, implement [ReadlinkFileLister] which will then be used instead.
@@ -131,11 +131,19 @@ type NameLookupFileLister interface {
131131 LookupGroupName (string ) string
132132}
133133
134- // ListerAt does for file lists what io.ReaderAt does for files.
135- // ListAt should return the number of entries copied and an io.EOF
136- // error if at end of list. This is testable by comparing how many you
137- // copied to how many could be copied (eg. n < len(ls) below).
134+ // ListerAt does for file lists what io.ReaderAt does for files, i.e. a []os.FileInfo buffer is passed to the ListAt function
135+ // and the entries that are populated in the buffer will be passed to the client.
136+ //
137+ // ListAt should return the number of entries copied and an io.EOF error if at end of list.
138+ // This is testable by comparing how many you copied to how many could be copied (eg. n < len(ls) below).
138139// The copy() builtin is best for the copying.
140+ //
141+ // Uid and gid information will on unix systems be retrieved from [os.FileInfo.Sys]
142+ // if this function returns a [syscall.Stat_t] when called on a populated entry.
143+ // Alternatively, if the entry implements [FileInfoUidGid], it will be used for uid and gid information.
144+ //
145+ // If a populated entry implements [FileInfoExtendedData], extended attributes will also be returned to the client.
146+ //
139147// Note in cases of an error, the error text will be sent to the client.
140148type ListerAt interface {
141149 ListAt ([]os.FileInfo , int64 ) (int , error )
0 commit comments