Specified what empty means.
parent
86e5486756
commit
9ec5569ff0
|
@ -296,7 +296,8 @@ type ReadDirRequest struct {
|
||||||
// offset, and return array offsets into that cached listing.
|
// offset, and return array offsets into that cached listing.
|
||||||
Offset DirOffset
|
Offset DirOffset
|
||||||
|
|
||||||
// The maximum number of bytes to return in ReadDirResponse.Data.
|
// The maximum number of bytes to return in ReadDirResponse.Data. A smaller
|
||||||
|
// number is acceptable.
|
||||||
Size uint64
|
Size uint64
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -313,6 +314,8 @@ type ReadDirResponse struct {
|
||||||
// Each entry returned exposes a directory offset to the user that may later
|
// Each entry returned exposes a directory offset to the user that may later
|
||||||
// show up in ReadDirRequest.Offset. See notes on that field for more
|
// show up in ReadDirRequest.Offset. See notes on that field for more
|
||||||
// information.
|
// information.
|
||||||
|
//
|
||||||
|
// An empty buffer indicates the end of the directory has been reached.
|
||||||
Data []byte
|
Data []byte
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue