From 9ec5569ff0feaa4a506c9771dabc88f6841776a6 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Fri, 27 Feb 2015 11:11:12 +1100 Subject: [PATCH] Specified what empty means. --- file_system.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/file_system.go b/file_system.go index 5cd73fd..9bfc231 100644 --- a/file_system.go +++ b/file_system.go @@ -296,7 +296,8 @@ type ReadDirRequest struct { // offset, and return array offsets into that cached listing. 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 } @@ -313,6 +314,8 @@ type ReadDirResponse struct { // 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 // information. + // + // An empty buffer indicates the end of the directory has been reached. Data []byte }